flask server to serve json