Fix pep8 violations in switch_manager.py