title: CSV file from string output
body: <p>I have this kind of string output: </p>
  
  <pre><code>Gender,Age,Weight,Height
  Male, 55, 82, 180
  Female, 34,55,167
  Female,44,67,182
  Male,81,73,175
  Male,44,34,87,185
  </code></pre>
  
  <p>What is the easiest way to make CSV file from this output? I tried some StringIO methods but I can't get them work in Python 3.6.0.</p>