https://docs.python.org/2/library/subprocess.html
... или для очень простой команды:
import os os.system('cat testfile')