Updated flask server example.