Can't we just use another `with` statement here for the lifetime of `f`?  Or to `h5py.File` objects not support the context manager interface?