easier to use within a module, e.g. in the scheduler
Merge pull request #224 from niphlod/enhancement/sessions2trash.py

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