Shell Script e Python

Para rodar Shell Script no Python use a biblioteca subprocess.

import subprocess
subprocess.call("clear", shell=True)
subprocess.call("echo 'Usando Shell Script e Python'", shell=True)
subprocess.call("ls -l", shell=True)

Leia mais em www.jperla.com/blog/post/a-clean-python-shell-script