transient.py: add `message` to allow use of transient messages via `with`