[pyqr] Fix file open mode in examples.
[pyqr] Change to accept byte object in Python 3.x