def validate_recaptcha(private_key, challenge, response, remote_ip):
    request = urllib2.Request(VERIFY_SERVER, data=urlencode({
        'privatekey':       private_key.encode('utf-8'),
        'remoteip':         remote_ip.encode('utf-8'),
        'challenge':        challenge.encode('utf-8'),
        'response':         response.encode('utf-8')
    }))
    response = urllib2.urlopen(request)
    rv = response.read().splitlines()
    response.close()
    if rv and rv[0] == 'true':
        return True
    if len(rv) > 1:
        error = rv[1]
        if error == 'invalid-site-public-key':
            raise RuntimeError('invalid public key for recaptcha set')
        if error == 'invalid-site-private-key':
            raise RuntimeError('invalid private key for recaptcha set')
        if error == 'invalid-referrer':
            raise RuntimeError('key not valid for the current domain')
    return False
Similar to the Ansible function of the same name, parses file
dataset/ETHPy150Open mitsuhiko/fungiform/fungiform/recaptcha.py/validate_recaptcha--crossover with--dataset/ETHPy150Open ansible/tower-cli/lib/tower_cli/utils/parser.py/parse_kv