def sum_accumulators(accs):
    """Takes a list of accumulators or Nones and adds them together.
    """
    valid = [acc for acc in accs if acc]
    if len(valid) == 0:
        return None

    ret = valid[0]
    for v in valid[1:]:
        ret += v
    return ret