Check If String Has Substring Python 3