code: def __respond_with_list(self, data):
          
          response = []
          if isinstance(data, dict):
              data.pop('seq', None)
              data = list(data.values())
  
          for item in data:
              values = item
              if isinstance(item, list) or isinstance(item, dict):
                  values = self.__respond_with_list(item)
  
              if isinstance(values, list) and len(values) == 1:
                  response.extend(values)
              else:
                  response.append(values)
  
          return response
docs: Builds a python list from a json object
  
          :param data: the json object
          :returns: a nested list