def get_attributes(message):
    """
    Return a dictionary of the message attributes.
    """
    return {key: value['string_value']
            for key, value in message[0].message_attributes.iteritems()}