title: Python Hex-String to Hex-String with Backslash
body: <p>I'm really confused, with Byte-Strings in Python.</p>
  <p>I need to compare two Byte-Strings, so they should be converted the same (?)</p>
  <p>I have a String of Hex-Values:</p>
  <blockquote>
  <p>52fab71f49a01ef92e793b41c13c5458080679919c7e5888f195935bd50c1bb8</p>
  </blockquote>
  <p>If I convert this to a Byte-String with <code>bytes.fromHex('52fab...')</code> I get:</p>
  <blockquote>
  <p>b'R\xfa\xb7\x1fI\xa0\x1e\xf9.y;A\xc1&lt;TX\x08\x06y\x91\x9c~X\x88\xf1\x95\x93[\xd5\x0c\x1b\xb8'</p>
  </blockquote>
  <p>But I want the <code>'R'</code> at the beginning as <code>'0x52'</code>. How can I achieve this? <br>
  Why do I get <code>'R'</code> instead of <code>'0x52'</code>? As Example, for the 2nd Byte, I get <code>'0xfa'</code> for <code>'fa'</code>.</p>
  <p>Same Problem with the other Ascii &quot;Letter&quot; like 'y', ';', 'A' ...</p>
  <p>I hope this is not too confusing - I haven't found a appropriate solution after a long research.</p>
  <p>Greetings</p>
  <p>Daniel</p>