Python scripts for realizing a ventilation control