Adjust for the fact that Python 2.5 doesn't have collections.MutableSet.