I think it would be best if all the hdf5 stuff would go into a separte utils file e.g. ```utils/hdf5.py```.