@siddarth.naik: The question that was originally asked, was regarding python.
You UI code will depend on where see the UI.
I would suggest going through the following documentation link for the bubbles app to design an UI which will open in a web browser.
It takes less than 10 minutes, to set up this system.