title: Python - convert from hex integer to hex string
body: <p>Is there a reasonably simple way to convert from a hex integer to a hex string in python?
  For example, I have <code>0xa1b2c3</code> and I want <code>"0xa1b2c3"</code>.  If I use str(), it automatically gets converted to base 10, and then I can't convert it back because it's a string at that point.  </p>