Group exercise to learn Python by converting scripts from Perl (files from v1.3.3 of mfcovington/auto_barcode; commit: cf3acbec32)