def seek_write(path, data, offset):
    path = os.path.expanduser(path)
    try:
        seek_fh = os.open(path, os.O_WRONLY)
        os.lseek(seek_fh, int(offset), 0)
        ret = os.write(seek_fh, data)
        os.fsync(seek_fh)
    finally:
        os.close(seek_fh)
    return ret
--cfgobj== policy-*(where *=action;classifer,rule,ruleset,targetgroup,
dataset/ETHPy150Open saltstack/salt/salt/modules/file.py/seek_write--crossover with--dataset/ETHPy150Open openstack/group-based-policy/gbpservice/tests/contrib/gbpfunctests/libs/config_libs.py/Gbp_Config.gbp_policy_cfg_upd_all