def replace (inlst,oldval,newval):
    lst = inlst*1
    for i in range(len(lst)):
        if type(lst[i]) not in [ListType,TupleType]:
            if lst[i]==oldval: lst[i]=newval
        else:
            lst[i] = replace(lst[i],oldval,newval)
    return lst
IDN.
dataset/ETHPy150Open sunlightlabs/clearspending/completeness/statlib/pstat.py/replace--crossover with--dataset/ETHPy150Open LabPy/lantz/lantz/drivers/legacy/tektronix/tds2024b.py/TDS2024.idn