Revised Modelica code and documentation of Python interface.