Decoding barcodes using python