def decompile_scriptPubKey(asm):
asm = asm.split("<STR_LIT:U+0020>")<EOL>hex = "<STR_LIT>"<EOL>if asm[<NUM_LIT:0>] == '<STR_LIT>':<EOL><INDENT>hex += "<STR_LIT>"<EOL><DEDENT>if asm[<NUM_LIT:1>] == '<STR_LIT>':<EOL><INDENT>hex += '<STR_LIT>'<EOL><DEDENT>if len(asm[<NUM_LIT:2>]) == <NUM_LIT>:<EOL><INDENT>hex += asm[<NUM_LIT:2>]<EOL><DEDENT>if asm[<NUM_LIT:3>] == '<STR_LIT>':<EOL><INDENT>hex += '<STR_LIT>'<EOL><DEDENT>if asm[<NUM_LIT:4>] == '<STR_LIT>':<EOL><INDENT>hex += '<STR_LIT>'<EOL><DEDENT>return hex<EOL>
>>> decompile_scriptPubKey('OP_DUP OP_HASH160 cef3550ff9e637ddd120717d43fc21f8a563caf8 OP_EQUALVERIFY OP_CHECKSIG')
'76a914cef3550ff9e637ddd120717d43fc21f8a563caf888ac'