title: python pack output in string format
body: <p>I have done the following. </p>
  
  <pre><code>from struct import pack, unpack
  t = 1234
  tt = str(pack("&lt;I", t))
  </code></pre>
  
  <p>printing tt gives <code>\xf3\xe0\x01\x00</code>. How do I get original value of <code>t</code> back from tt?</p>
  
  <p>I tried using unpacking the <code>repr(tt)</code> but that does not work out. How do I go about doing this?</p>