Python Match Case Substring Check