Fixed a pre-existing Python 3 bug.