python check if object not in list