Correct bug showing up in python 3.