code: def as_models(self, klass):
          
          try:
              return [klass(mod) for mod in self.tree.reply.data.results.array[0].item]
          except AttributeError:
              return []
docs: Turns an array-style response into a list of models.