python check if string matches any in list