Use flask-script so command line parameters can be used.
Use template rather than putting HTML directly in the return statement