update / fix for py3