Example showing the issue of serializing an SQLAlchemy Query object to JSON