# store some notes d = VDict() d[] = 'monitor' d[] = 'light' # add a new note img = capture() d[img] = input() # lookup notes for i in (1,2): query = capture() note = d[query][0] popup(note)