import psutil
import os
for proc in psutil.process_iter():
if (proc.name()=='python'):
os.system("sudo renice -20 -p %s "%(proc.pid))
import psutil
import os
for proc in psutil.process_iter():
if (proc.name()=='python'):
os.system("sudo renice -20 -p %s "%(proc.pid))