Inventory Management Code In Python