new file : phoseg/inventory.py