@staticmethod
def _handle_binary_attributes(data):
    " Simulate botocore's binary attribute handling "
    if (ITEM in data):
        for attr in six.itervalues(data[ITEM]):
            _convert_binary(attr)
    if (ITEMS in data):
        for item in data[ITEMS]:
            for attr in six.itervalues(item):
                _convert_binary(attr)
    if (RESPONSES in data):
        for item_list in six.itervalues(data[RESPONSES]):
            for item in item_list:
                for attr in six.itervalues(item):
                    _convert_binary(attr)
    if (LAST_EVALUATED_KEY in data):
        for attr in six.itervalues(data[LAST_EVALUATED_KEY]):
            _convert_binary(attr)
    if (UNPROCESSED_KEYS in data):
        for table_data in six.itervalues(data[UNPROCESSED_KEYS]):
            for item in table_data[KEYS]:
                for attr in six.itervalues(item):
                    _convert_binary(attr)
    if (UNPROCESSED_ITEMS in data):
        for table_unprocessed_requests in six.itervalues(data[UNPROCESSED_ITEMS]):
            for request in table_unprocessed_requests:
                for item_mapping in six.itervalues(request):
                    for item in six.itervalues(item_mapping):
                        for attr in six.itervalues(item):
                            _convert_binary(attr)
    if (ATTRIBUTES in data):
        for attr in six.itervalues(data[ATTRIBUTES]):
            _convert_binary(attr)
    return data
Simulate botocore's binary attribute handling
@staticmethod
def _handle_binary_attributes(data):
    "  "
    if (ITEM in data):
        for attr in six.itervalues(data[ITEM]):
            _convert_binary(attr)
    if (ITEMS in data):
        for item in data[ITEMS]:
            for attr in six.itervalues(item):
                _convert_binary(attr)
    if (RESPONSES in data):
        for item_list in six.itervalues(data[RESPONSES]):
            for item in item_list:
                for attr in six.itervalues(item):
                    _convert_binary(attr)
    if (LAST_EVALUATED_KEY in data):
        for attr in six.itervalues(data[LAST_EVALUATED_KEY]):
            _convert_binary(attr)
    if (UNPROCESSED_KEYS in data):
        for table_data in six.itervalues(data[UNPROCESSED_KEYS]):
            for item in table_data[KEYS]:
                for attr in six.itervalues(item):
                    _convert_binary(attr)
    if (UNPROCESSED_ITEMS in data):
        for table_unprocessed_requests in six.itervalues(data[UNPROCESSED_ITEMS]):
            for request in table_unprocessed_requests:
                for item_mapping in six.itervalues(request):
                    for item in six.itervalues(item_mapping):
                        for attr in six.itervalues(item):
                            _convert_binary(attr)
    if (ATTRIBUTES in data):
        for attr in six.itervalues(data[ATTRIBUTES]):
            _convert_binary(attr)
    return data