fix for py2 regressions
Note to self