code: def load_class(path):
      
      package, klass = path.rsplit('.', 1)
      module = import_module(package)
      return getattr(module, klass)
docs: dynamically load a class given a string of the format
      
      package.Class