Pass mode to all h5py.File calls
This PR adds explicit mode=<>
keyword arguments to all h5py.File
calls. The default mode
is changing in h5py-3.0.0 from 'a'
to 'r'
, so we need this to make sure nothing breaks - this should be backwards-compatible.