fix for py3k