'Export this cookie\'s attributes as a dict of encoded values.
This is an important part of the code for rendering attributes, e.g.
render_response().'

def attributes(self):

    dictionary = {}
    for (python_attr_name, cookie_attr_name) in self.attribute_names.items():
        value = getattr(self, python_attr_name)
        renderer = self.attribute_renderers.get(python_attr_name, None)
        if renderer:
            value = renderer(value)
        if (not value):
            continue
        dictionary[cookie_attr_name] = value
    return dictionary
