Convert byte string to bytes or bytearray : <p>I have a string as follows:</p>

<pre><code>  b'\x00\x00\x00\x00\x07\x80\x00\x03'
</code></pre>

<p>How can I convert this to an array of bytes? ... and back to a string from the bytes?</p>
