Attempt to be compilant with Python 3.