'Decodes strings from serialized responses.'

def _Decode(self, value):

    result = value
    if isinstance(value, (tuple, list)):
        try:
            (base64value, one) = value
            if (one == 1):
                result = base64.decodestring(base64value)
        except (ValueError, binascii.Error):
            pass
    return result
