title: Python hex from socket converts to ascii
body: <p>I am sure there is a simple answer to this, the problem is phrasing it correctly in google to get the answer which I can seem to do. I am getting a raw packet from a socket. </p>
  
  <pre><code>pkt=sock.recv(2048)
  '\x00\x00\x12\x00.H\x00\x00\x00\x02l\t\xa0\x00\xb3\x01\x00\x00'
  </code></pre>
  
  <p>The above is the radiotap as you can see, several of the bytes were converted to ascii namely '.', 'H', 't'. How can I get the hex values so it reads:</p>
  
  <pre><code>'\x00\x00\x12\x00\x2e\x48 ...'
  </code></pre>