I've never actually used named tuples, but from looking around, I agree they may make more sense. So you are thinking of basically having an ``IOHandler`` named tuple, which both ``fits.py`` and ``hdf5.py`` should provide?