def fullname(cls):
    """Get full name of a class."""
    module = cls.__module__
    if module is None or module == str.__class__.__module__:
        return cls.__class__.__name__
    return module + '.' + cls.__class__.__name__