title: saving python variable to .mat file with scipy.io.savemat
body: <p>Here is my python code. </p>
  
  <pre><code>&gt;&gt;import numpy as np
  &gt;&gt;import scipy.io
  &gt;&gt;exon = [ np.array([[1, 2], [3, 4], [5, 6]]), np.array([[7, 8], [9, 10]]) ]
  &gt;&gt;obj_arr = np.zeros((2,), dtype=np.object)
  &gt;&gt;obj_arr[0] = exon[0]
  &gt;&gt;obj_arr[1] = exon[1]
  &gt;&gt;scipy.io.savemat('/tmp/out.mat', mdict={'exon': obj_arr}, format='5')
  </code></pre>
  
  <p>But I am getting an error message </p>
  
  <pre><code>Traceback (most recent call last):
    File "save_mat.py", line 12, in &lt;module&gt;
      scipy.io.savemat('out.mat', mdict={'exon':obj_arr}, format='5')
  TypeError: savemat() got an unexpected keyword argument 'format'
  </code></pre>
  
  <p>Many thanks for helping to figure out the problem.</p>
  
  <p>Vipin T S</p>