Python 3 file changes