Bruce Eckel has a detailed write-up about building a UI using a local webserver in Python. It’s a good explanation of the technique, and provides a complete example. I didn’t have the csv module, so I just commented out the code that dealt with CSV files, and the sample worked fine after that.
It can be daunting learning or even choosing a GUI framework, and if the app you need to build lends itself to the relatively poor interaction available in a browser, this kind of local web app can be a good way to go. I’m glad to see the technique wrapped up in a nice present like this.