file.py: bug fix - was not using os.linesep