def transpose_list(input):
    """
    INPUT:

    - ``input`` -- a list of lists, each list of the same
       length

    OUTPUT:

    - ``output`` -- a list of lists such that output[i][j]
       = input[j][i]

    EXAMPLES::

        sage: from sage.schemes.hyperelliptic_curves.monsky_washnitzer import transpose_list
        sage: L = [[1, 2], [3, 4], [5, 6]]
        sage: transpose_list(L)
        [[1, 3, 5], [2, 4, 6]]
    """
    h = len(input)
    w = len(input[0])

    output = []
    for i in range(w):
        row = []
        for j in range(h):
            row.append(input[j][i])
        output.append(row)
    return output