How to fix SyntaxError: invalid syntax (match statement) in Python | DevErrors