python check if in list of strings