Minor refactoring of I/O code (no change in functionality).
Fix I/O bug introduced in last commit.
Put options argument back in io/petsc.py read and write functions.
Merge pull request #358 from ketch/clean_up_io

Clean up I/O