Minimal flask app to serve stats as JSON