Fix error running flask as dev server