title: How to get '\x01' to 1
body: <p>I am getting this:</p>
  
  <pre><code>_format_ = "7c7sc"
  print struct.unpack(self._format_, data)
  </code></pre>
  
  <p>gives</p>
  
  <pre><code>('\x7f', 'E', 'L', 'F', '\x01', '\x01', '\x01', '\x00\x00\x00\x00\x00\x00\x00', '\x00')
  </code></pre>
  
  <p>I want to take <code>'\x01'</code> and get 1 from it, i.e., convert to ``int. Any ideas?
  Thanks</p>