Fix formatting to conform to PEP8

This is a wonderful book and I thank you and the community so much for preserving the code as well as the example data. The one issue with this codebase is the poor formatting. I've run this through a formatter (see autopep8) to significantly improve readability.