Possible fix for pypy

Idea from http://www.tismer.com/pypy/irc-logs/pypy/pypy.2013-11-18.log.html