Pagination support for Flask