Mimicking Fortran string properties using Python/h5py

I’ve found a solution which looks like it works from a previous Forum post: