Flask server for serving stats