changed flask.script with click