import importlib


def load_class(str_full_type):
  """
  Load a python class given full qualified name.
  """
  type_s = str_full_type.split('.')
  mod = importlib.import_module('.'.join(type_s[:-1]))
  cls = getattr(mod, type_s[-1])
  return cls