ordering.py change to hdf5