avoid Py2/3 syntax incompatibility after 2to3