def __setattr__(self, name, value):
        """
        Set an attribute on the wrapped module object.
        """
        state = _InternalState(self)
        state._lastWasPath = False
        setattr(state._module, name, value)

        Set an attribute on the wrapped module object.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/deprecate.py