title: Python converting hex string to hex little endian byte code
body: <p>I'm trying to do this </p>
  
  <pre><code>pack("&lt;Q", 0x401a12)
  </code></pre>
  
  <p>It works as it is, but I need pack() to take string hex code</p>
  
  <pre><code>addr = "0x401a12" # some hex from dump
  pack("&lt;Q", addr)
  </code></pre>
  
  <p>Any help?</p>