SWIG generated python wrapper for units