I ended up reading data from a .p file:
[whatever_data]=pickle.load( open( "myallData.p", "rb" ) )
Then use scipy to convert and save the data in .mat
import numpy, scipy.io scipy.io.savemat('/home/myfiles/mydata.mat', mdict={'whatever_data': whatever_data})
So, not to deal with pickle.
source share