title: How to write variables as binary data with Python?
body: <p>I need to write a long list of ints and floats with Python the same way <code>fwrite</code> would do in C - in a binary form. </p>
  
  <p>This is necessary to create input files for another piece of code I am working with.</p>
  
  <p>What is the best way to do this?</p>