title: python csv module strip lines before parsing
body: <p>I have a plain text file:</p>
  
  <pre><code>    2 jordyt
      2 dawder
      2 LOL12345
      2 2251084185
      2 123456789
      2 123456
      1 warcraft
      1 tripp88
  </code></pre>
  
  <p>after parsing it via <code>python's csv</code> module , i have:</p>
  
  <pre><code>with open(filename,'r') as csvfile:
      reader = csv.reader(csvfile,delimiter=' ')
      for row in reader:
          print row
  
  ['', '', '', '', '', '', '2', 'jordyt']
  ['', '', '', '', '', '', '2', 'dawder']
  ['', '', '', '', '', '', '2', 'LOL12345']
  ['', '', '', '', '', '', '2', '2251084185']
  ['', '', '', '', '', '', '2', '123456789']
  ['', '', '', '', '', '', '2', '123456']
  ['', '', '', '', '', '', '1', 'warcraft']
  ['', '', '', '', '', '', '1', 'tripp88']
  </code></pre>
  
  <p>EDIT 1:</p>
  
  <p>I expect the output like this:</p>
  
  <pre><code>['2', 'jordyt']
  ['2', 'dawder']
  ['2', 'LOL12345']
  .
  .
  .
  </code></pre>
  
  <p>i can fix this problem with a custom pre-processor. but, those files are so big, and its not good to read them twice.</p>
  
  <p>my question is: how can i tell the csv module to strip the lines before parsing it?</p>