code: def _import_class(self, module2cls):
          
          d = module2cls.rfind(".")
          classname = module2cls[d + 1: len(module2cls)]
          m = __import__(module2cls[0:d], globals(), locals(), [classname])
          return getattr(m, classname)
docs: Import class by module dot split string