title: Convert TXT file to CSV using Python
body: <p>I have the <code>txt</code> output, which I am willing to convert into <code>CSV</code> </p>
  
  <pre><code>Output(data.txt)
  
  
  apache_web,/my_storage/nfs/indexes,18452          
  apache_web,/my_storage/nfs/indexes,0
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>name_of_bucket:apache_web,bucket_id:/mystorage/nfs/indexes,size:18452
  name_of_bucket:apache_web,bucket_id:/mystorage/nfs/indexes,size:0
  </code></pre>
  
  <p>Expecting</p>
  
  <pre><code>name_of_bucket,bucket_id,size    
  apache_web,/my_storage/nfs/indexes,18452   
  apache_web,/my_storage/nfs/indexes,0
  </code></pre>