Python Format Table Output Matlab File