MRG: io cleanup

remove deprecated open function and place staticmethod open on File. Fix open test by not using MemFile and cleaning up created file.