URL unsplit
import urlparse print urlparse.urlunsplit(('http','www.python.org:80', '/faq.cgi','src=fie',''))