def _import_module(name): """Import module, returning the module after the last dot.""" __import__(name) return sys.modules[name]