def on_get(req, resp): result = Prices.list(req.context['session']) found = [row.dict() for row in result] respond(resp, body=json.dumps(found))