python if x and y not in list