pep8, whitespace fixes and tests isolation