Flask broken pipe with requests,app.run(threaded=True)