Replaced file() with open() in scoremanager.iotools.