import os
os.system('clear')
import subprocess
print "start"
subprocess.call("sleep.sh")
print "end"
import subprocess
subprocess.call(["sudo", "apt", "update"])
#!/bin/sh
python python_script.py
import subprocess
output = subprocess.check_output('pidstat -p ALL'.split(' '), stderr=subprocess.STDOUT, universal_newlines=True)
print(output)