Using python scripts as shell escaping is just too hard.