updating to Python 3