def fullname(class_):
    """Return the full class name of a class."""
    if class_.__module__ == '__builtin__':
        return class_.__name__
    else:
        return '.'.join((class_.__module__, class_.__name__))