python check if value not in set