fix imports, update Flask to latest version
change port to 5002