title: Converting from hex to binary without losing leading 0's python
body: <p>I have a hex value in a string like </p>
  
  <pre><code>h = '00112233aabbccddee'
  </code></pre>
  
  <p>I know I can convert this to binary with:</p>
  
  <pre><code>h = bin(int(h, 16))[2:]
  </code></pre>
  
  <p>However, this loses the leading 0's. Is there anyway to do this conversion without losing the 0's? Or is the best way to do this just to count the number of leading 0's before the conversion then add it in afterwards.</p>