Use BytesIO as its better with Python3