title: How can I unpack binary hex formatted data in Python?
body: <p>Using the PHP <a href="http://www.php.net/pack" rel="noreferrer">pack()</a> function, I have converted a string into a binary hex representation:</p>
  
  <pre><code>$string = md5(time); // 32 character length
  $packed = pack('H*', $string);
  </code></pre>
  
  <p>The H* formatting means "Hex string, high nibble first".</p>
  
  <p>To unpack this in PHP, I would simply use the <a href="http://www.php.net/unpack" rel="noreferrer">unpack()</a> function with the H* format flag.</p>
  
  <p>How would I unpack this data in Python?</p>