Cleanning code of pergola_rules.py