Visual Basic Pattern Matching In Python