how not end a process in python script code example Example: python kill script import sys sys.exit()