If I have an object like:
d = {\'a\':1, \'en\': \'hello\'}
...then I can pass it to urllib.urlencode, no problem:
urllib.urlencode
this one line working fine in my case -->
urllib.quote(unicode_string.encode('utf-8'))
thanks @IanCleland and @PavelVlasov