title: Python conversion from binary string to hexadecimal
body: <p>How can I perform a conversion of a binary string to the corresponding hex value in Python?</p>
  
  <p>I have <code>0000 0100 1000 1101</code> and I want to get <code>048D</code> I'm using Python 2.6.</p>