Some PEP8 improvements

I found your blog post very interesting. In my spare time I'd like to help in rendering the code more readable.