Do you want to use subprocess.Popen:
>>> import subprocess
>>> r = subprocess.Popen(['ls', '-l'])
>>> output, errs = r.communicate()
>>> print(output)
Total 72
Popen-construtor accepts a list of arguments as the first parameter. The list starts with the command (in this case ls), and the rest of the values are the keys and other parameters of the command. The above example is written as ls -lon the terminal (either on the command line or in the console). Windows equivalent would be
>>> r = subprocess.Popen(['dir', '/A'])