Visual Basic Pattern Matching In Python Code