Updating the file according to python3.