Fix Python 3 compat

[ci skip]