Think I got it finally, flask-script FTW?