If you want to make it interactive and a bit more advance create a GUI for it.
This is one I found on GUI Designer - LabDeck
Use this software,MD Python (Free) - LabDeck, it’s free and simply add the code, if you don’t want to use the Designer generate the GUI components into Python code. And if you do do this please get back to me so I can see the final product.