Rewritten as a Flask web-app