This actually makes it practical to use python where I would usually use shell scripts.
(But if you do, use bash-modules, please).