Comparing sets in Python