Added per-rule python actions