Read QR code in Python