Monkeypatch Python to fix <http://bugs.python.org/issue14653>

Fixes <http://trac.buildbot.net/ticket/2522>