Visual Basic Pattern Matching In Python Code For Calculator