Update single_switch.py