using url_quote instead urllib2 for python 3 compat