def __setstate__(self, state):
if isinstance(state, dict):<EOL><INDENT>super().__setstate__(state)<EOL><DEDENT>else:<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT>
Necessary for making this object picklable