Fix RuleList.__setitem__.
Only catch ValueErrors when decoding rules.
Use string formatting rather than concatenation.
Prefer single quotes.
Rename parse_index_arg to parse_int_arg.
Use parse_int_arg in parse_rule_arg.