Fix Py3k issue #24.