def my_import(name):
    """ dynamic importing """
    module, attr = name.rsplit('.', 1)
    mod = __import__(module, fromlist=[attr])
    klass = getattr(mod, attr)
    return klass()
def my_import ( name ) : module , attr = name . rsplit ( '.' , 1 ) mod = __import__ ( module , fromlist = [ attr ] ) klass = getattr ( mod , attr ) return klass ( )
dynamic importing