In Python, how to simulate the control structure switch-case?