title: Invalid hex values
body: <p>I'm using <code>hex(int('00000000', 2))</code> to convert a binary string into hex. </p>
  
  <p>It works fine for all (output) values from <code>10</code> to <code>FF</code>, but its not padding <code>00</code> to <code>09</code> properly, and I'm seeing <code>0x0</code> to <code>0x9</code> instead of the <code>0x00</code> to <code>0x09</code> that I am expecting. </p>
  
  <p>What am I doing wrong?</p>