python check if element in list contains string