remove more flask code

2 jobs for master in 4 minutes and 21 seconds