Add missing setUnits call
Add support for Python conversion