Python 2/3 port: result of ``futurize --stage1``: updated Py2 code