def from_module_import_class(modulename, classname):
    klass = getattr(
        __import__(modulename, globals(), locals(), [classname], -1),
        classname
    )
    globals()[classname] = klass
Import a class from a module.
dataset/ETHPy150Open facebook/augmented-traffic-control/atc/atcd/atcd/AtcdThriftHandlerTask.py/from_module_import_class