I no longer write in the Pythonwise blog. You can find my writing at https://www.ardanlabs.com/blog/ or https://medium.com/@tebeka
This is the code from pythonwise.blogspot.com.
Feel free to look around and use what you think is useful.
Enjoy - Miki
Note: I don't accept pull requests to this repo.