fix Py3k issue