python check if list element exists in string