title: exctract binary expression from string
body: <p>I have a file in which for what ever case words are saved in python style binary representation:</p>
  <pre class="lang-py prettyprint-override"><code>file = [&quot;b'first'&quot;, &quot;b'second'&quot;]
  </code></pre>
  <p>Is it possible to extract this and save the bit representation to a variable (to perform decoding) without regexing the values between the single quotes and then encode and decode the string?</p>