changes for py3k