Consider porting your shell scripts to Python? The language is vastly superior and subprocess.check_call is not so bad.