code: def hexedit(x):
      
      x = bytes(x)
      fname = get_temp_file()
      with open(fname,"wb") as f:
        f.write(x)
      subprocess.call([conf.prog.hexedit, fname])
      with open(fname, "rb") as f:
        x = f.read()
      return x
docs: Run external hex editor on a packet or bytes. Set editor in conf.prog.hexedit