python check if string is not in list of strings