Safely build PyKE rule base.
Merge pull request #435 from bjlittle/pyke_rule_compile

Safely build PyKE rule base.