def METHOD_NAME(name, globals, docstring):
    import imp
    import sys
    moduleName = name.split('.')[-1]
    module = imp.new_module(moduleName)
    module.__file__ = __file__
    module.__doc__ = docstring
    sys.modules[name] = module
    globals[moduleName] = module