def qualified_name(object_instance):
    """Return the fully qualified type name of an object.
    
    :param object_instance: Object instance.
    :return: Fully qualified name string.

    """

    if hasattr(object_instance, '__module__'):
        return object_instance.__module__ + '.' + type(object_instance).__name__
    else:
        return type(object_instance).__name__