title: Convert bytes to bits in python
body: <p>I am working with Python3.2. I need to take a hex stream as an input and parse it at bit-level. So I used </p>
  
  <p><code>bytes.fromhex(input_str)</code></p>
  
  <p>to convert the string to actual bytes. Now how do I convert these bytes to bits?</p>