python check if variable is not in list