Workaround python3 h5py problems