def __next__(self):
    'Special paging functionality'
    if (self.iter is None):
        self.iter = iter(self.objs)
    try:
        return next(self.iter)
    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 next(self)
        else:
            raise
Special paging functionality
def __next__(self):
    
    if (self.iter is None):
        self.iter = iter(self.objs)
    try:
        return next(self.iter)
    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 next(self)
        else:
            raise