def csv_write_matrices(file, suffix, matrices):
    """Write matrices to csv file

    :param file file: open file
    :param str suffix: suffix for filename
    :param list matrices: a list of matrices

    """
    for i, matrix in enumerate(matrices):
        output = io.StringIO()
        writer = csv.writer(
            output,
            delimiter=";",
            quoting=csv.QUOTE_NONNUMERIC
        )
        for row in matrix:
            writer.writerow(row)
        file.writestr("%i_%s.csv" % (i, suffix), output.getvalue())