title: Convert 2d numpy array into list of lists
body: <p>I use an external module (<a href="http://www.csie.ntu.edu.tw/~cjlin/libsvm/" rel="noreferrer">libsvm</a>), which does not support numpy arrays, only tuples, lists and dicts. But my data is in a 2d numpy array. How can I convert it the pythonic way, aka without loops. </p>
  
  <pre><code>&gt;&gt;&gt; import numpy
  &gt;&gt;&gt; array = numpy.ones((2,4))
  &gt;&gt;&gt; data_list = list(array)
  &gt;&gt;&gt; data_list
  [array([ 1.,  1.,  1.,  1.]), array([ 1.,  1.,  1.,  1.])]
  
  &gt;&gt;&gt; type(data_list[0])
  &lt;type 'numpy.ndarray'&gt;  # &lt;= what I don't want
  
  # non pythonic way using for loop
  &gt;&gt;&gt; newdata=list()
  &gt;&gt;&gt; for line in data_list:
  ...     line = list(line)
  ...     newdata.append(line)
  &gt;&gt;&gt; type(newdata[0])
  &lt;type 'list'&gt;  # &lt;= what I want
  </code></pre>