Fixed a Python 3 specific crash.