changes to aux script to make it compatible with jython
corrected inhom mech dict