quick fix for py3 compatibility