Add python rule tester