Fix PEP8 coding style violations (all but E501)

I ran `pep8 --ignore=E501 *.py` and fixed some errors.

TODO: Fix E501 errors.

As part of http://24pullrequests.com/