As discussed here, it would be nice if we cleaned up the codebase using a PEP8 checker. It remains to be seen which tool we should use (there seem to be many similar checkers available).
Note however, as pointed out in this SO answer, pep8-ifying a whole codebase has some drawbacks. Maybe we should instead enforce a rule that from now on, new commits must be PEP8 compliant.