print coverage at the end of the test; minor pep8 fixes