def check_script(script):
    if (type(script) is str):
        script = hex_str_to_bytes(script)
    if ((type(script) is bytes) or (type(script) is CScript)):
        return script
    assert False
def check_script(script):
    if (type(script) is str):
        script = hex_str_to_bytes(script)
    if ((type(script) is bytes) or (type(script) is CScript)):
        return script
    assert False