Add workaround for http://bugs.python.org/issue21617