title: python hex-editor binary change
body: <p>i want to change binary value in file in</p>
  
  <p>elif(IN = edithex)</p>
  
  <p>//
  this part have problem....  </p>
  
  <p>open.write(b'\xff') &lt;&lt; this code is working but i want to use (input data) to (write)</p>
  
  <p>help me..</p>
  
  <pre><code>inedit = raw_input("change hex value &gt;")
  OPEN.write(b'\xff')
  
  
  
  
  
      elif (IN == 'edithex'):
          editoffset = int(offset, 0)
          OPEN.seek(editoffset)
          inedit = raw_input("change hex value &gt;")
          OPEN.write(b'\xff')
          print ('hex value changed ==&gt;' + inedit)
  </code></pre>