@sh.add_function(dsp)
def write_key(key_fpath, key):
    with open(key_fpath, 'w') as f:
        f.write(key)