def read_bits_from_fileobject( self, fp ):                       #(M1)
        bitlist = []                                                 #(M2)
        while 1:                                                     #(M3)
            bit = fp.read()                                          #(M4)
            if bit == '': return bitlist                             #(M5)
            bitlist += bit                                           #(M6)
This function is meant to read a bit string from a 
dataset/ETHPy150Open networkdynamics/zenlib/src/zen/util/bitvector.py/BitVector.read_bits_from_fileobject