title: python csv2libsvm.py: AttributeError: '_csv.reader' object has no attribute 'next'
body: <p>I want to convert a csv file into sparse format file with csv2libsvm.py (<a href="https://github.com/zygmuntz/phraug/blob/master/csv2libsvm.py" rel="noreferrer">https://github.com/zygmuntz/phraug/blob/master/csv2libsvm.py</a>).</p>
  
  <p>The CSV file contains 37 attributes + the label (last column). it doesn't contain header or index.
  Exp of the 1st row:     63651000000.0,63651000000.0,153.1,0,0,0,0,0,0,5,1,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1</p>
  
  <p>When entring the following command line : 
      python csv2libsvm.py Z.csv data.txt 38 1</p>
  
  <p>I got the following error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "csv2libsvm.py", line 47, in &lt;module&gt;
      headers = reader.next()
  AttributeError: '_csv.reader' object has no attribute 'next'
  </code></pre>
  
  <p>Do you have any idea about the problem ?</p>