python 3 fix proposal

It seems ok after that