Make code in chapter 15 more PEP8-compliant

This book is read by many beginners. It would be good to follow good practices as much as possible so beginners get used to them early on.

http://legacy.python.org/dev/peps/pep-0008/