Not a big deal, but I notice us python guys tend to forget about "switch", which I think would be more idiomatic here.