Python 3 support: working on the file situation