def _transpose(mat):
    """ Transpose matrice made of lists
    INPUTS
    ------
    mat: iterable 2d list like

    OUTPUTS
    -------
    r: list of list, 2d list like
        transposed matrice
    """
    r = [ [x[i] for x in mat] for i in range(len(mat[0])) ]
    return r