import urllib urllib.quote('http://www.sharejs.com',safe='')