def submit(recaptcha_response, private_key, remoteip):
params = urlencode({<EOL>"<STR_LIT>": private_key,<EOL>"<STR_LIT>": recaptcha_response,<EOL>"<STR_LIT>": remoteip,<EOL>})<EOL>if not PY2:<EOL><INDENT>params = params.encode("<STR_LIT:utf-8>")<EOL><DEDENT>response = recaptcha_request(params)<EOL>data = json.loads(response.read().decode("<STR_LIT:utf-8>"))<EOL>response.close()<EOL>return RecaptchaResponse(<EOL>is_valid=data["<STR_LIT:success>"],<EOL>error_codes=data.get("<STR_LIT>")<EOL>)<EOL>
Submits a reCAPTCHA request for verification. Returns RecaptchaResponse
for the request

recaptcha_response -- The value of reCAPTCHA response from the form
private_key -- your reCAPTCHA private key
remoteip -- the user's ip address