title: Python CSV specific line to extract
body: <p>I have two CSV files and I want python to open <code>file1.csv</code> and read line 7 from that file and look for that same binary code on the WHOLE <code>file2.csv</code>. </p>
  
  <p>This is what I have so far but it does not work: </p>
  
  <pre><code>import csv
  
  a = open('file1.csv','r').readline[7]
  
  
  with open('file2.csv') as infile:
      for row in csv.reader(infile):
          if row[1:] == a: # This part is fine because i want to skip the first row 
              print row[0], ','.join(row[1:])
  </code></pre>