def poprule(rulename, default):
    valid_rules.append(rulename)
    return filt_cfg_.pop(rulename, default)
def poprule(rulename, default):
    valid_rules.append(rulename)
    return filt_cfg_.pop(rulename, default)