python check if string matches any item in list