io_tools.dict_to_h5.
prep_params_for_h5
Replace all NoneType with a string ‘none’ to be able to write to h5.
prep_params_from_h5
Replace all ‘none’ strings with NoneType to parse the dict coming from h5.