python check if object is not in list