how do i write a float list of lists to file in python,file.write(str(m))