title: How to read bytes as stream in python 3
body: <p>I'm reading a binary file (ogg vorbis) and extracting some packets for later processing. These packets are python bytes objects, and would we useful read them with a "read(n_bytes)" method. Now my code is something like this:</p>
  
  <pre><code>packet = b'abcd'
  some_value = packet[0:2]
  other_value = packet[2:4]
  </code></pre>
  
  <p>And I want something like this:</p>
  
  <pre><code>packet = b'abcd'
  some_value = packet.read(2)
  other_value = packet.read(2)
  </code></pre>
  
  <p>How can I create a readable stream from a bytes object?</p>