def framesFromBytes(data):
 buffer = FrameBuffer()
 buffer.receiveData(data)
 return list(buffer)

def framesFromBytes ( data ) : buffer = FrameBuffer ( ) buffer . receiveData ( data ) return list ( buffer )
given a sequence of bytes .