The contributing guide asks for users to use flake8 to check their Python code prior to submitting. That said, a simple:
flake8 * | wc -l
In the test directory on master yield 7,731 warnings.
If there's an appetite for it I'd be happy to start cleaning some of these up. It's way too much for one PR but I could put a running checklist here and knock out module by module.
Thinking beyond this change, if we get all of the internal items cleaned up then flake8 could be added to CI to automatically detect and error out whenever coding guidelines have been violated. Thoughts?