title: Python parallel process to write s3 file
body: <p>I have a queue in which i have > 10k of rows and i am using parallel processing to write to file on s3 but no luck. Any idea how can that be archived?</p>
  
  <p>I am already using <code>smart_open</code> package to open the file and to write.</p>
  
  <pre><code>with smart_open.smart_open(key, 'w') as fout:
      csvwriter = csv.writer(fout)
      csvwriter.writerow(inrow)
  </code></pre>
  
  <p>Above code in written inside a function , which i am running by creating multiple threads. inrow is the list of elements that is present in the queue(list of queue).</p>