def exclude(args, complianceList): excluded = map(lambda token: token.strip(), args.exclude.split(",")) complianceList = filter( lambda entry: LongBow.score(eval(args.distribution), entry.getScore()) not in excluded, complianceList) return complianceList