title: Stop python script without killing the python process
body: <p>I would like to know if there is a way of programatically stopping a python script execution without killing the process like we do with this code:</p>
  
  <pre><code>import sys
  sys.exit()
  </code></pre>
  
  <p>It would be the code equivalent to Ctrl+c</p>