Fixed "AttributeError: type object '_io.StringIO' has no attribute 'StringIO'"
Try to deepcopy in _reduce_cycle_set instead of copy to avoid dictionary size change