Rules Engine In Python A Namespace