PEP8 compliance edits

Style edits only, no functionality changes, to comply with [PEP8](http://www.python.org/dev/peps/pep-0008/). Note that some lines are still longer than 78 characters due to long error messages or URLs, but these still try to stay within a reasonable length (longest is 91 characters).