def deserialize_key_value(value, secret=False):
 if secret:
  KeyValuePairAPI._setup_crypto()
  value = symmetric_decrypt(KeyValuePairAPI.crypto_key, value)
 return value

def deserialize_key_value ( value , secret = False ) : if secret : KeyValuePairAPI . _setup_crypto ( ) value = symmetric_decrypt ( KeyValuePairAPI . crypto_key , value ) return value
deserialize the datastore item value .