Use signal.setitimer on 2.6+.