To write web gui in Python, there are some other open source alternatives.
If just want to port simple shell interactive interface to web gui, can check https://github.com/pywebio/PyWebIO
If want to get a production level dashboard by using Python, https://wave.h2o.ai/ <<Realtime Web Apps and Dashboards for Python and R>>