Correct all PEP8 errors in the code

These errors are all currently ignored, but the changes are simple.
They are still present in the current test suite, which is in the
process of being rewritten, so this does not un-ignore these
errors quite yet.