Question: Is there anyway I can make my script execute one of my functions when `Ctrl+c` is hit when the script is running?

Answer: 
Sure.

```
try:
  # Your normal block of code
except KeyboardInterrupt:
  # Your code which is executed when CTRL+C is pressed.
finally:
  # Your code which is always executed.

```
Use the [KeyboardInterrupt exception](http://docs.python.org/library/exceptions.html#exceptions.KeyboardInterrupt) and call your function in the `except` block.