Updates to tdm2hdf.py