def parseproxyuri(proxyurl):
 groups = PROXY_REGEX.match(proxyurl).groups()
 return (groups[1], groups[3], groups[4])

def parseproxyuri ( proxyurl ) : groups = PROXY_REGEX . match ( proxyurl ) . groups ( ) return ( groups [ 1 ] , groups [ 3 ] , groups [ 4 ] )
parses a http proxy uri in the format x://a .