Conversion to Python3.