Python Check If Any Substring C