Point of Sale (POS) System in Python - Product Encoding