python test if string is in list of strings