code: def next(self):
          
          if self.iter == None:
              self.iter = iter(self.objs)
          try:
              return self.iter.next()
          except StopIteration:
              self.iter = None
              self.objs = []
              if int(self.page) < int(self.total_pages):
                  self.page += 1
                  self._connection.get_response(self.action, self.params, self.page, self)
                  return self.next()
              else:
                  raise
docs: Special paging functionality