'Override the default _generate() method to also clear out
exported collections.'

def _generate(self):

    s = self.__class__.__new__(self.__class__)
    s.__dict__ = self.__dict__.copy()
    s._reset_exported()
    return s
