from subprocess import call call('echo "I like potatos"', shell=True) call('pwd', shell=True)
import shlex tokens = ["echo", "-n", "Python is awesome"] shlex.join(tokens) # "echo -n 'Python is awesome'"