Look at:
C:\Mach4Hobby\Docs\Mach4CoreAPI.chm
You may need to install a viewer such as xchm to read this file.
I'm not sure why DefUnits would change, but you could assume 21 to force metric for jogging:
rc = mc.mcJogSetUnitsMode(inst, axis, 21)
Allan