How would I succinctly transpose nested lists?
<p>I am writing code to parse a tilemap map from a config file. The map is in the format:</p>

<pre><code>1|2|3|4
1|2|3|4
2|3|4|5
</code></pre>

<p>where the numbers represent tiles.
I then make this into an integer array:</p>

<pre><code>[[int(tile) for tile in row.split("|")] for row in  "1|2|3|4\n1|2|3|4\n2|3|4|5".lstrip("\n").split("\n")]
</code></pre>

<p>This produces an array in the format [row][column], but I would prefer it to be [column][row] as in [x][y] so I wouldn't have to address it backwards (i.e. [y][x]).
But I can't think of any concise ways of attacking the problem. 
I have considered reworking the format using xml syntax through Tiled, but it appears too difficult for a beginner.</p>

<p>Thanks in advance for any responses.</p>
