python test if a string is in a list of strings