def cls_name(instance):
    """Return the name of the class of the instance.

        >>> cls_name({})
        'dict'
        >>> cls_name(AttributeError('attr'))
        'AttributeError'

    """
    return instance.__class__.__name__