def __getstate__(self):
state = {}<EOL>for attribute in self.DATA_ATTRIBUTES:<EOL><INDENT>state[attribute] = getattr(self, attribute, None)<EOL><DEDENT>return state<EOL>
Implemented so pickle.dumps() and pickle.loads() work