Corrected TFramedTransport.readFrame to create a BytesIO object from the transport readAll() call