Rules Engine In Python If You Executed