title: How to convert a dictionary to query string in Python?
body: <p>After using <code>cgi.parse_qs()</code>, how to convert the result (dictionary) back to query string? Looking for something similar to  <code>urllib.urlencode()</code>. </p>