title: Python writing binary
body: <p>I use python 3
  I tried to write binary to file I use r+b.</p>
  
  <pre><code>for bit in binary:
      fileout.write(bit)
  </code></pre>
  
  <p>where binary is a list that contain numbers.
  How do I write this to file in binary?</p>
  
  <p>The end file have to look like 
  b' x07\x08\x07\</p>
  
  <p>Thanks</p>