last py3 fix