Fixed BytesIO and iteritems incompatibilities, closes 490.