cleanup and pytest-pep8 tests