Python 3.x bug fix.