def response_cookie_rewrite(cookie_string):
 cookie_string = regex_cookie_rewriter.sub(('domain=' + my_host_name_no_port), cookie_string)
 return cookie_string

def response_cookie_rewrite ( cookie_string ) : cookie_string = regex_cookie_rewriter . sub ( ( 'domain=' + my_host_name_no_port ) , cookie_string ) return cookie_string
rewrite response cookie strings domain to my_host_name :type cookie_string: str .