Please note: while I understand you were simply trying to get stuff to work, I encourage you to get the verification dialog back into the script. Offline signing has a dramatically reduced security profile if you are not manually verifying the transaction details in the secure environment.
For instance, your online computer is compromised. You request a transaction to send 1 BTC to address A. The online computer tells you that's what the transaction is for, but the transaction it saves to the USB is for 100 BTC from your wallet to address B (owned by the attacker). If you blindly sign it, you won't know what happened until it's too late.
This is why the Trezor has a little screen on it to display tx details and have you submit a physical button press. It assumes the transaction came from an untrusted environment and needs to be reviewed in the trusted environment.
Less critical, but still important... I recommend you not hardcode your password into the script. The password on your wallet isn't very useful if there's a plaintext file (the script) sitting on your harddrive with the password. The "getpass" module in the original script allows the terminal to collect your password at signing time and apply it without touching the disk.
Perhaps your use case is wildly different than I am imagining. Maybe you are implementing something that needs to do automatic signing and is protected in other ways, such as a firewalled signing device with an address whitelist with rate-limiting, etc. Just making sure you aware of the various risks associated with removing functionality from the original script.
Thank you for your concern. It is completely understandable and I understand the risks.
However I am not using the script in that way at all. The purpose of providing the raw script was so the bare functionality could be seen and worked upon afterwards. I left the functions such as amount calculations and passwords in so that it would be easily seen how to validate transactions if needed. When I have some more time, I will add the last part of the script that is missing too.
All I thought I would do was add what I was looking for in the first place. I know most want to just use the default script which is why it's there and I'm trying to add parts I won't even use, but there are (be it very few probably) some people who would like to use parts of the scripts for other purposes. Armory is extremely complex with a lot of code, I just thought it would be simpler for someone.
If you would feel more comfortable I removed the stripped down script, I would be more than happy too, please just let me know