Convert Csv To Picture
<p>So recently I built a scanner out of my old lego mindstorms set the file it out puts is in csv format and looks some thing like this</p>

<pre><code>1,1,152
11,1,49
21,1,56
31,1,59
41,1,60
51,1,58
61,1,61
71,1,57
81,1,60
91,1,61
</code></pre>

<p>The first number is the x value of the pixel (1,490)
The second is the y value (1,870)
and the third is the light value (0,100)</p>

<p>My original idea was to use python to convert the file however I have no clue how to format it into a picture. So my question is how do I do that?</p>