Kill process by name in python - Stack Overflow
If you have killall:os.system("killall -9 iChat"); Or:os.system("ps -C iChat -o pid=|xargs kill -9")
If you have killall:
os.system("killall -9 iChat");
Or:
os.system("ps -C iChat -o pid=|xargs kill -9")