def flat(l):
    newl = []
    for i in range(len(l)):
        for j in range(len(l[i])):
            newl.append(l[i][j])
    return newl
Turns on the first switch that it finds.
dataset/ETHPy150Open sunlightlabs/clearspending/completeness/statlib/pstat.py/flat--crossover with--dataset/ETHPy150Open issackelly/wemo/wemo.py/on