QRcode encoder and decoder for python