Test If String Contains Substring Python