remove deprecated open function and place staticmethod open on File. Fix open test by not using MemFile and cleaning up created file.
Merge pull request #368 from ndawe/file_cleanup

io cleanup