this change was done in py2 and makes sense in py3 as well