title: Convert binary to list of digits Python
body: <p>I have the following scenario:</p>
  
  <pre><code>x = 0b0111
  </code></pre>
  
  <p>I would like to convert this value to:</p>
  
  <pre><code>y = [0, 1, 1, 1]
  </code></pre>
  
  <p>When I convert <code>x = 0b1001</code>, I can get <code>y = [1, 0, 0, 1]</code>, but when I try to do the same for <code>x = 0b0111</code>, and then convert back with <code>str(bin(y))</code> - I seem to lose the leading <code>0</code>, and get <code>0b111</code>.</p>
  
  <p>Any suggestions?</p>