Python Check If String Has Substring C