title: Convert string byte to byte like b'\x00\x01\x02'
body: <p>I have a string of bytes like this:</p>
  <pre><code>mystring = '000102'
  </code></pre>
  <p>And I need:</p>
  <pre><code>result = b'\x00\x01\x02'
  </code></pre>
  <p>Now I did:</p>
  <pre><code># Opt 1
  result = bytearray(mystring, 'utf-8') # I suppose is not correct encoded
  # Opt 2
  result  = mystring.encode()
  </code></pre>
  <p>And both give me, <code>b'000102'</code>. How can I obtain the <code>'\x'</code> that defines every byte?</p>
  <p>Thank you very much, I suposes is an easy question, but I can't find how do it</p>