minor fix for py3