code: def _get_pages(page_size, total_records):
          
          pages = total_records/page_size+bool(total_records%page_size)
          return range(1, pages+1)
docs: Given a page size (records per page) and a total number of
          records, return the page numbers to be retrieved.