Fix an bug created in refactor for Python 3.2