def decode(self, value, value_type):
if value_type == '<STR_LIT:i>':<EOL><INDENT>return int(value)<EOL><DEDENT>if value_type == '<STR_LIT:z>':<EOL><INDENT>value = zlib.decompress(value)<EOL>value_type = '<STR_LIT:p>'<EOL><DEDENT>if value_type == '<STR_LIT:p>':<EOL><INDENT>return pickle.loads(force_bytes(value))<EOL><DEDENT>raise ValueError(<EOL>"<STR_LIT>"<EOL>.format(value_type),<EOL>)<EOL>
Take a value blob and its value_type one-char code and convert it back
to a python object