def get_class_def(class_name):
    """
    Returns the definition for the given class name.
    """
    parts = class_name.split('.')
    module = ".".join(parts[:-1])
    mdl = __import__(module, globals=globals())
    for comp in parts[1:]:
        mdl = getattr(mdl, comp)
    return mdl