Python Writes a Blank Row in CSV After Each Valid Row

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).


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 (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.)