Began conversion to python.