fixed #4 (BytesIO not seekable)