def flatten(iterable):
    accumulator = []
    for i in iterable:
        if type(i) is list:
            accumulator.extend(flatten(i))
        else:
            if i == None:
                continue
            accumulator.append(i)
    return accumulator

65f8781756c34086b53b8326ac7153f2561e4897
<mask token>

def flatten(iterable):
    accumulator = []
    for i in iterable:
        if type(i) is list:
            accumulator.extend(flatten(i))
        else:
            if i == None:
                continue
            accumulator.append(i)
    return accumulator
