Update file to Python 3