if 'type' in kwargs: for k,info in info_list.iteritems(): if k in kwargs['type']: info.selected = True