MNT : six-ified BytesIO import in pdf backend