Apply http://bugs.python.org/file30901/traceback2.patch from http://bugs.python.org/issue17911