python check if not in set