Python Match Case Substring In Mysql