title: StringIO replacement that works with bytes instead of strings?
body: <p>Is there any replacement for python <code>StringIO</code> class, one that will work with <code>bytes</code> instead of strings?</p>
  
  <p>It may not be obvious but if you used StringIO for processing binary data you are out of luck with Python 2.7 or newer. </p>