pep8 the run-tests script
flake8 and a bit of cleanup