def __setstate__(self, state):
    self._rollout = state['rollout']
    self._obj = self._rollout.__dict__
    self._index = state['index']
def __setstate__(self, state):
    self._rollout = state['rollout']
    self._obj = self._rollout.__dict__
    self._index = state['index']