def _shell(cmd, check=True, stdin=None, stdout=None, stderr=None):  
return subprocess.run(cmd, shell=True, check=check, stdin=stdin, stdout=stdout, stderr=stderr)<EOL>
Runs a subprocess shell with check=True by default