Import class by module dot split string

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