fix typo
use BytesIO instead of StringIO in the tutorial
tutorial: mention that files should be opened in binary mode