Import h5py. Creating an HDF5 file in Python is straightforward.