code: def submit(recaptcha_response, private_key, remoteip):
      
      params = urlencode({
          "secret": private_key,
          "response": recaptcha_response,
          "remoteip": remoteip,
      })
  
      if not PY2:
          params = params.encode("utf-8")
  
      response = recaptcha_request(params)
      data = json.loads(response.read().decode("utf-8"))
      response.close()
      return RecaptchaResponse(
          is_valid=data["success"],
          error_codes=data.get("error-codes")
      )
docs: 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