see discussion on http://bugs.python.org/issue13968