barcode_scanner and PEP8 correction