title: Python read a binary file and decode
body: <p>I am quite new in python and I need to solve this simple problem. Already there are several similar questions but still I cannot solve it.<br>
  I need to read a binary file, which is composed by several blocks of bytes. For example the header is composed by 6 bytes and I would like to extract those 6 bytes and transform ins sequence of binary characters like 000100110 011001 for example. </p>
  
  <pre><code>navatt_dir='C:/PROCESSING/navatt_read/'
  navatt_filename='OSPS_FRMT_NAVATT____20130621T100954_00296_caseB.bin'
  navatt_path=navatt_dir+navatt_filename
  
  navatt_file=open(navatt_path, 'rb')
  header=list(navatt_file.read(6))
  print header
  </code></pre>
  
  <p>As result of the list i have the following</p>
  
  <pre><code>%run C:/PROCESSING/navatt_read/navat_read.py
  ['\t', 'i', '\xc0', '\x00', '\x00', 't']
  </code></pre>
  
  <p>which is not what i want.<br>
  I would like also to read a particular value in the binary file knowing the position and the length, without reading all the file. IS it possible<br>
  thanks</p>