For the modules/__init__.py, fixes from Issue #792

proposed by @userclandestine'

See #792 issue: "Modules do not properly get activated/deactivated"