title: python converting hexadecimal binary to string
body: <p>I am using <code>python3.5</code> and I wish to write output I get in hexadecimal bytes (<code>b'\x00'</code>, <code>b'\x01'</code> etc) to python strings with <code>\x00 -&gt; 0</code>  and <code>\x01 -&gt; 1</code> and I have this feeling it can be done easily and in a very pythonic way, but half an hour of googling still make me think the easiest would be to make a dictionary with a mapping by hand (I only actually need it from 0 to 7). </p>
  
  <pre><code>Input    Intended output
  b'\x00'  0 or '0'
  b'\x01'  1 or '1'
  </code></pre>
  
  <p>etc.</p>