session2trash.py: easier to use within a module, e.g. in the scheduler