Work with Python 3.