def Import(modname):
    try:
        return sys.modules[modname]
    except KeyError:
        pass
    __import__(modname)
    return sys.modules[modname]
Improved __import__ function that returns fully initialized subpackages.
dataset/ETHPy150Open kdart/pycopia/aid/pycopia/aid.py/Import