use urllib.urlencode