(Similar to this question)
On UNIX under Python 2.7, at the Python prompt:
>>> import signal >>> def handler(signal, frame): ...
After opening the bug upstream the root cause of the problem was found and a patch was written. This patch won't be going into the python 2.x series.