Python already supports switch...case statements.

with switch(foo) as case:
    with case(10):
        print('foo is 10')
    with case.in_(15, 16, 17):
        print('foo might be 15 or 16 or 17')
    with case.default:
        print('Whatever...')

You just need to implement the switch and case things to match the code above... Also, an if..elif..else block will be simpler to use