Fix pep8 violations in topology_manager.py