Brett - modified MDL.py to output directly