Corrected loop syntax for wolfram_rules.py.