possible fix for  #726987 in Debian

Not sure it's the correct way, but it might work.
See
https://mail.python.org/pipermail/python-list/2007-September/465169.html