Minified version of shell script, which takes args, and can be called by python based WEB API