from functools import reduce
some_list = [True, False, True, False, False]
reduce(lambda (true, false), x: (true + [x], false) if x else (true, false +
    [x]), some_list, ([], []))
filtered and non-filtered elements in a single pass