devlist = ["SINEG01"] for dev in devlist: val = caget(dev + "-MSOL010:I-SET") val = val - 0.010 caput(dev + "-MSOL010:I-SET", float(val))