Fix pep8 issues throughout the codebase.

This helps fix lots of little pep8 issues found in the codebase. There
are still line length issues in signature.py, but only because we're
comparing literal text, and cannot fix those issues. (That code all
needs to be converted into a modern test anyway.)