Added DM.py.  Tested and working including offset and axesratio.