def register(self):
    sys.modules['%s.%s' % (__name__, self.name)] = self
fake_module('api', 'class1', 'class2', 'func3', 'exception4').register()
How to define a `from ... import *' api seperate from __all__ in a module?