Fix unused BytesIO in blog.py on Python 3