setup.py: updates to file I/O fcns