'Reconstitute the state of the object from being pickled.
Uses the fact that the instance variable _dynamic_attrs holds attrs that
will be wiped and restored on pickle serialization.'

def __setstate__(self, state):

    self.__dict__.update(state)
    self._dynamic_attrs = []
    self._set_service_methods()
