mysets = [set([0, 1, 2]), set([3, 2]), set([4, 1]), set([5, 6]), set([7, 8])]
output = [mysets.pop(0)]
while mysets:
    test = mysets.pop(0)
for idx, other in enumerate(output):
    pass
What's the pythonic way to unite all the intersecting sets in a list?