tests: pep8/pyflakes clean-up