Handling SIGINT (Ctrl+c) and converting from python2 to python3

Hi,

I updated your code from python2 to python3 (using 2to3 and the pyxhook.py that I use in my own projects).

I also created a simple signalhandler for SIGINT to permit pyty.py to be quitted by Ctrl+c.

Finally, I made pyty.py executable (for my convenience).

Cheers,
Denis
Looking closer at the code, it doesn't even look like this import is being used. Am I missing something? I understand it was in the original code (you'll see this file was included from another open source project), perhaps I just missed seeing this as a superfluous import.