Rules Engine For Python Command Inputs