Python reading files in a directory
===

I have a .csv with 3000 rows of data in 2 columns like this:

uc007ayl.1	ENSMUSG00000041439

uc009mkn.1	ENSMUSG00000031708

uc009mkn.1	ENSMUSG00000035491

In another folder I have a graphs with name like this:

uc007csg.1_nt_counts.txt

uc007gjg.1_nt_counts.txt

You should notice those graphs have a name in the same format of my 1st column

I am trying to use python to identify those rows that have a graph and print the name of 2nd column in a new .txt file

These are the codes I have

    import csv
    with open("C:/Users/Ivan Wong/Desktop/Placement/Lists of targets/Mouse/UCSC to Ensembl.csv", "r") as f:
    reader = csv.reader(f, delimiter = ',')
        for row in reader:
            print row[0]

but this as far as I can get and I am stuck, please give me a hand