The following shows the setup of the outbound python scripts for the MSA segment:
MSA Segment Definition
You can see that the outbound message control ID is set using the variable previously set during the parsing of the original message. The ACKnowledgment code is simply set to an 'AA' constant. If you were using the autonack.vmd file, the constant would be set up to use the 'AE' constant.