get all data from paginated api python