How can I change a list of strings into CSV in Python?
<h3>Example strings:</h3>

<pre><code>uji708
uhodih
utus29
agamu4
azi340
ekon62
</code></pre>

<p>I need to change them into CSV list like this:</p>

<pre><code>uji708,uhodih,utus29,  
agamu4,azi340,ekon62,
</code></pre>

<p>My code so far:</p>

<pre><code>email = 'mail_list.txt'
handle = open(email)

for line in handle:
    try:
        email = line.split()[0].replace('\n', '')
        l = line.split()
        print '\n'.join((','.join(x) for x in zip(l[::3], l[1::3], l[2::3])))    
    except:
        print 'error'
</code></pre>

<p>How can I do this in Python?</p>
