merge switching.py&&multiswitching.py -> switching.py