def main(self, args): if len(args) != 1: print self.help return delta = int(args[0]) mlist = members.list_all() for member in mlist.values(): term = "f0000" term = reduce(max_term, member.get("term", []), term) term = reduce(max_term, member.get("nonMemberTerm", []), term) if terms.delta(term, terms.current()) >= delta: print "%s %s" % (member['uid'][0].ljust(12), term)