title: convert hex ascii mixed string like r'\x74op' to 'top' in python
body: <p>I want to print out hex string in \xNN.  Is there any quick method to let \xNN convert back to hex string?
  I prefer native quick method instead of manual write long function.</p>
  
  <p>eg.</p>
  
  <pre><code>$ python
  &gt;&gt;&gt; '\x74op'
  &gt;&gt;&gt; 'top'
  
  &gt;&gt;&gt; s=r'\x74op'
  &gt;&gt;&gt; '\\x74op'
  
  &gt;&gt;&gt; convert(s)  # how to write this function
  &gt;&gt;&gt; 'top'
  </code></pre>