workaround for python bug issue15881

Without this fix we run into this bug: http://bugs.python.org/issue15881

Now `python setup.py test` works!