Mimic the fall-through behavior of switch in Python