Update switch_by_dict.py