code: def import_class(import_str):
      
      mod_str, _sep, class_str = import_str.rpartition(".")
      __import__(mod_str)
      return getattr(sys.modules[mod_str], class_str)
docs: Returns a class from a string including module and class.