I\'m trying to place rules into list of dicts, where every dict contains conditions and the rule itself. The problem is that there is no easy way for self reference inside d