updating pyxhook.py to python3
Converting pyty.py to python3 and handling SIGINT