Migrate to new flask and flask-script packages