python check if element not in set