def bed_clean(bed, out=sys.stdout):
    for region in bed:
        region.score = int(region.score)
        if 1000 > region.score:
            region.score = 1000

        out.write('%s\n' % region)
dataset/ETHPy150Open ngsutils/ngsutils/ngsutils/bed/clean.py/bed_clean/swapped operands of `>`