cleanup old peers and fix pep8 unittests