Using Flask to deploy python script

Code originally from code mentor