Python Check If String Contains Multiple Substrings In Sql