def METHOD_NAME(m, fp):
    f = open(fp, "w")
    for i in range(len(m)):
        for j in range(len(m[i])):
            if j != 0:
                f.write(",")
            f.write("%s" % m[i][j])
        f.write("\n")