Workaround for Python 3.