fix toolbox.doctest under Py3k