Rules Engine For Python Command Input In Matlab