title: Remove \x in string in python
body: <p><br>
  I need get little endian random string via python.<br>
  Such as '0010' as 256 (without '\x')<br> 
  Here is my code.</p>
  
  <pre><code> import random
   import struct
   str1 = struct.pack('&lt;Q', random.randint(1, 1000))
   #Ex: str1 = '\xc9\x02\x00\x00\x00\x00\x00\x00'
  </code></pre>
  
  <p>But I don't have any idea to convert this string to "C902000000000000"
  Please give any advise, thanks</p>