Fixed a Python 3.x issue.