Rule Engine In Python A Namespace