def is_dict(thing):
return isinstance(thing, types.DictType)<EOL>
checks if an object is a dictionary type

        >>> is_dict({})
        True
        >>> is_dict(dict())
        True
        >>> is_dict("{}")
        False
        >>> is_dict([])
        False