fix switch naming bug in topology.py