fix for py3