def import_class(import_str):
    mod_str, _sep, class_str = import_str.rpartition('.')
    __import__(mod_str)
    return getattr(sys.modules[mod_str], class_str)
Returns a class from a string including module and class.
dataset/ETHPy150Open kwminnick/rackspace-dns-cli/dnsclient/utils.py/import_class