title: How to convert an int to a hex string?
body: <p>I want to take an integer (that will be &lt;= 255), to a hex string representation</p>
  
  <p>e.g.: I want to pass in <code>65</code> and get out <code>'\x41'</code>, or <code>255</code> and get <code>'\xff'</code>.</p>
  
  <p>I've tried doing this with the <code>struct.pack('c',</code>65<code>)</code>, but that chokes on anything above <code>9</code> since it wants to take in a single character string.</p>