<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def respond(self, data, format='json'):
 """ Converts a json object to a python datastructure based on specified format :param data: the json object :param format: python datastructure type. Defaults to: "json" :returns: a python specified object """

        dispatchers = {
            "dict": self.__respond_with_dict,
            "list": self.__respond_with_list
        }

        if not dispatchers.get(format, False):
            return json.dumps(data)

        return dispatchers[format](data)