code: def str_to_class(class_name):
      
      mod_str, cls_str = class_name.rsplit('.', 1)
      mod = __import__(mod_str, globals(), locals(), [''])
      cls = getattr(mod, cls_str)
      return cls
docs: Returns a class based on class name