I want to parse a csv file with python. To do that, I want to create a copy of the same file, and then parse it line by line. 

If one of the lines fulfills the condition, I want that line to be removed from the temporary file, and placed to a new file.

In this way I can make the tmp smaller and smaller as it iterates over the list, so there is less to parse, as well as see whether the temporary file is empty in the end of the parsing, and confirm that my parsing has worked fine. Whereas, I will not have damaged the original file. 

---

Let's say the original file contains:

```
AAAAAAAAAA
BBBBBBBBBB
CCCCCCCCCC
AAAAAAAAAA
BBBBBBBBBB

```

then I have a list 

```
list = [AAAAAAAAA, BBBBBBBBBB,CCCCCCCCCC]

```

and I can do something in the lines of:

```
for x in list:
   for line in tmpCsv:
       if x in line:
            #remove line from tmpCsv place it to file x.CSV

```