how to create an inventory system in python