add io bytes parser for python3 compatibility