Use ByteIO as its better with Python3