def build_p2sh_lookup(args):
    (scripts, warnings) = parse_scripts(args)
    for w in warnings:
        print(w)
    p2sh_lookup = {}
    for script in scripts:
        p2sh_lookup[hash160(script)] = script
    return p2sh_lookup
def build_p2sh_lookup(args):
    (scripts, warnings) = parse_scripts(args)
    for w in warnings:
        print(w)
    p2sh_lookup = {}
    for script in scripts:
        p2sh_lookup[hash160(script)] = script
    return p2sh_lookup