Change default writing mode
HDF5 writing modes are defined in https://docs.h5py.org/en/2.3/high/file.html.
We should change the destructive default mode 'w'
(create file, truncate if exists) to the safer 'w-'
(create file, fail if exists).
Edited by Jean-Baptiste Bayle