def object_hook(self, obj):
    if ('__class__' in obj):
        return self.dict_to_class(obj)
    return obj
def object_hook(self, obj):
    if ('__class__' in obj):
        return self.dict_to_class(obj)
    return obj