my_module = importlib.import_module('module.submodule')
MyClass = getattr(my_module, 'Klass')
instance = MyClass()
Python dynamic instantiation from string name of a class in dynamically imported module