def __setstate__(self, stateDict):
self.__class__.validateModel()<EOL>for key, value in stateDict.items():<EOL><INDENT>setattr(self, key, value)<EOL><DEDENT>self._origData = stateDict['<STR_LIT>']<EOL>
pickle uses this