Redirect flask server stdout to file