Export weight windwsto h5

Hi everyone!
I’m looking for some advice on how to export weight windows in to an h5 file. I’m creating the WW class based on wwinp file using wwinp_to_wws. I will be repeating simulations with similar geometry and would like to re-use the weight windows instead of dumping them each time in to my settings.xml file - the file quickly becomes to large to use with WW in there.
I found the openmc.lib.export_weight_windows() function, but I haven’t been able to export my ww to an h5.
I’d appreciate any and all insight and if possible a minimal working example on how the export to h5 can be implemented - both write an read.
Thanks!