Moved flask-script to its own file