fixed issue with scipy.io.loadmat and strange formatting of arrays (thanks to Bill Kalies for finding this)