title: Python hex to string?
body: <p>I've generated a hex string using</p>
  
  <pre><code>x = os.system('openssl rand -hex 10')
  </code></pre>
  
  <p>But I'd like to use it as a string.</p>
  
  <p>I've tried with <code>str(b0f4735701d6325fd072)</code> but it does not work.</p>
  
  <p>also</p>
  
  <pre><code>&gt;&gt;&gt; print(x)
  7a7f13f40aac84332d44
  
  &gt;&gt;&gt; print("x is of type {}\nx has value {}".format(type(x), x))
  x is of type &lt;type 'int'&gt;
  x has value 0
  </code></pre>