Can't convert byte to bitarray
<p>I want to generate N bytes and then to iterate through bytes and convert every single <code>byte</code> to <code>bitarray</code>.. but I cant. Questions:</p>

<ul>
<li>Why <code>byte_array</code> consists of ints and not of bytes?</li>
<li><p>Why <code>byteBitArray</code>  have None value and how to fix this?</p>

<pre><code>  import os
  from bitarray import bitarray


  byte_array = bytearray(os.urandom(3))

  for byte in byte_array:
        print (type(byte)) # &lt;class 'int'&gt;, why not byte?
        realByte = byte.to_bytes(1, byteorder='little')
        byteBitArray = a.frombytes(realByte) # byteBitArray = None . Why None?
</code></pre></li>
</ul>