title: How to generate uuid string
body: <p>Using <code>uuid</code> module I can generate an unique string (such as <code>c389fa3c-3a5c-4d8d-ac92-9b70f2bbe0b5</code>) using:</p>
  
  <pre><code>import uuid
  result = uuid.uuid4()
  print result 
  </code></pre>
  
  <p>which results to:</p>
  
  <pre><code>&lt;class 'uuid.UUID'&gt;
  </code></pre>
  
  <p>Now, in order to get a generated string I would need to call <code>str()</code> function:</p>
  
  <pre><code>uuid_string = str(result)
  print uuid_string
  </code></pre>
  
  <p>which prints:</p>
  
  <pre><code>c389fa3c-3a5c-4d8d-ac92-9b70f2bbe0b5
  </code></pre>
  
  <p>I wonder if there is a shorter way of generating the uuid text string as a string (without a need to use <code>str()</code> function).</p>