In your code, get_sourcing_requests_by_page_index is returning a tuple of two items. The first item is an integer, and the second item is a list. Check your code again to make sure you're returning the correct second value.
get_sourcing_requests_by_page_index