I was simply thinking of the serialize(tx_dict). I was thinking you would right your own (or overwrite) the serialize_script method. I mean there are less than 100 op codes right?
Interestingly... the script debugger says OP_SIGCHECK failed... but it didn't. Also, the funky output script does an interesting job of making the coins quasi-anonomized.