Script which generates a program to convert ROOT TTrees into HDF5 datasets