Create switching.py