human
Complete this python program:
def manage_changed(wrapped):
assistant
#Here is the Python code you requested.

    """Decorator which causes a cookie to be set when a setter method
    is called.
    """
    def changed(session, *arg, **kw):
        session.accessed = int(time.time())
        session.changed()
        return wrapped(session, *arg, **kw)
    changed.__doc__ = wrapped.__doc__
    return changed