Python Match Case Substring C