def is_class_dict(obj):
    """ helper class that tests to see if the obj is a flattened object

    >>> is_class_dict({'__class_module__':'__builtin__', '__class_name__':'int'})
    True
    >>> is_class_dict({'key':'value'})
    False
    >>> is_class_dict(25)
    False
    """
    if type(obj) is dict and \
            obj.__contains__('__class_module__') and obj.__contains__('__class_name__'):
        return True
    return False