Uniform the code to fetch all pages from API.
Support py33