Needs more comments.

Run with:
python3 -m test.switch