Rules Engine For Python Command Input