Cover tests started from run.py (and some pep8)