from numpy import array
import scipy.io
data = {'bigdata': {'a': array([1, 2, 3]), 'b': array([1, 2, 3]), 'c':
    array([1, 2, 3])}}
scipy.io.savemat('test.mat', data)
Storing a matlab file using python