Both forward-chaining and backward-chaining rules (which may include python code) are compiled into python. Can also automatically assemble python programs out of python functions which are attached to backward-chaining rules. See pyke.sourceforge.ne
Naimath (syn. blessing) is a project to create tools for diagnosis, management of clinical cases in the form of Rule based Medical Expert System integrating Interactive Health education, Semantified EMR, and serve as a learning tool for students. Website seen at www.naimath.com