def fullname(obj):
    """Returns the qualified name of an object's class

    :param obj: An object to inspect
    :returns: The name of the objects class
    """
    name = obj.__name__ if hasattr(obj, '__name__') else obj.__class__.__name__
    return '.'.join([obj.__module__, name])
