Python Writes a Blank Row in CSV After Each Valid Row

Hello,
I want to process a .csv file using GHPython.
It includes 4 items, whose parameters are stores under different headers.
One goal is to eliminate an item (i.e the entire row) based on a particular value (i.e. Old) under a particular header (i.e. Condition).

01

When the entire data is written in a new .csv file I need to see that blank row in the file.
But the output is written with the remaining items stored on every other row.

02

TEST.gh (17.7 KB)
TEST.csv (180 Bytes)

(side request: Any advice on how to make the ‘Plan B’ method more efficient, would be highly appreciated.)