Minor fixes to measure_dfm.py