Extension to the Python 'paginate' module to work with SQLAlchemy objects