python check if item not in set