def bitarray_to_u5(barr):
    assert ((barr.len % 5) == 0)
    ret = []
    s = bitstring.ConstBitStream(barr)
    while (s.pos != s.len):
        ret.append(s.read(5).uint)
    return ret
def bitarray_to_u5(barr):
    assert ((barr.len % 5) == 0)
    ret = []
    s = bitstring.ConstBitStream(barr)
    while (s.pos != s.len):
        ret.append(s.read(5).uint)
    return ret