@staticmethod<EOL><INDENT>def loads(astring):<DEDENT>
try:<EOL><INDENT>return pickle.loads(zlib.decompress(astring))<EOL><DEDENT>except zlib.error as e:<EOL><INDENT>raise SerializerError(<EOL>'<STR_LIT>'.format(str(e))<EOL>)<EOL><DEDENT>except pickle.UnpicklingError as e:<EOL><INDENT>raise SerializerError(<EOL>'<STR_LIT>'.format(str(e))<EOL>)<EOL><DEDENT>
Decompress and deserialize string into Python object via pickle.