def import_clazz(fqn):
    clazz = None
    index = fqn.rfind('.')
    if index != -1:
        clazz_name = fqn[index + 1:]
        mod = __import__(fqn[:index], globals(), locals(), [clazz_name])
        clazz = getattr(mod, clazz_name)
    return clazz
Save the form.
dataset/ETHPy150Open bartdag/recodoc2/recodoc2/apps/docutil/commands_util.py/import_clazz--crossover with--dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/admin/forms.py/DiffSettingsForm.save