extbld: better py2/py3 compat