>>> from clotheshop import low_stock >>> d = {('Pan85', 'XS','black'):100,('Pan85','S','black'):300, ... ('Pan85','XS','blue'):6,('Pan87','S','blue'):5, ... ('Pan87','L','blue'):12,('Pan85','M','white'):6, ... ('Pan85','L','white'):5,('Cam23','XL','white'):12} >>> lresult = low_stock(d,10) >>> lresult.sort() >>> lresult [('Pan85', 'L', 'white'), ('Pan85', 'M', 'white'), ('Pan85', 'XS', 'blue'), ('Pan87', 'S', 'blue')]