def name_of(obj):
    """Returns the name of the object supplied
    :rtype: str
    """
    mod = type(obj).__module__.split('.')
    if mod[-1] == obj.__class__.__name__:
        return str(type(obj).__module__)
    else:
        return str('.'.join([type(obj).__module__, obj.__class__.__name__]))
