Began conversion of some syntax to Python 3.