file.py: bug fix: forgot to import os

also in faddl, I'm using os.linesep instead of hardcoding "\n"