title: How to stop Python parse_qs from parsing single values into lists?
body: <p>In python 2.6, the following code:</p>
  
  <pre><code>import urlparse
  qsdata = "test=test&amp;test2=test2&amp;test2=test3"
  qs = urlparse.parse_qs(qsdata)
  print qs
  </code></pre>
  
  <p>Gives the following output:</p>
  
  <pre><code>{'test': ['test'], 'test2': ['test2', 'test3']}
  </code></pre>
  
  <p>Which means that even though there is only one value for test, it is still being parsed into a list. Is there a way to ensure that if there's only one value, it is not parsed into a list, so that the result would look like this?</p>
  
  <pre><code>{'test': 'test', 'test2': ['test2', 'test3']}
  </code></pre>