python if element not in set