upgrade code to Python 3