Converting program specific functions to Blender in python
I'm not sure why your bytes code became split into lines. I think this is stackexchange, but if this is done by bs.readBytes(0x40) you need to concatenate all lines before you will be able to decode them into floats. Decoding can be done with built-in memoryview() method or with built-in struct module, like  struct.unpack('f', bs.readBytes(0x40)). After that you can arrange floats into tuples. For example like this (consider bs.readBytes(0x40) doesn't split result into lines):
# readBytes_result = bs.readBytes(0x40)
def readBytes_to_vector(readBytes_result):
    bytes_to_floats = memoryview(readBytes_result).cast('f')
    counter = 0
    axis = []
    my_floats = []
    for fl in bytes_to_floats:
        axis.append(fl)
        counter+=1
        if counter == 4:
            counter=0
            my_floats.append(tuple(axis))
            axis = []
    return tuple(my_floats)

I prefer to use memoryview instead of struct because though it returns its own &quot;memoryview object&quot; instead of sequence of values (which is not always very handy) it is faster, especially when you need to handle large bytes arrays, like pixel data for example.