A bit of python to further wrap my head around MySQL / SQLAlchemy / etc (redundant work as SQLAlchemy provides pagination functionality, but was fun)