Make InventoryBrains's ComputedAttributes compatible with getitem interface
get rid of unused variables