'When trying to connect too many times with wrong password, a captcha can be requested.
This captcha is really simple and can be solved by the provider.
<label for="pass">204 + 65 = </label>
<input type="text" size="40" name="captchaAnswer" id="lgn" value=""/>
<input type="hidden" name="captchaQuery" value="204 + 65 = ">
<input type="hidden" name="captchaToken" value="005d54a7428aaf587460207408e92145">
<br/>
:param output: initial login output
:return: output after captcha resolution'

def _solveCaptcha(self, output, url_auth, params, opener):

    html = get_soup(output)
    query = html.find(u'input', {u'name': u'captchaQuery'})
    token = html.find(u'input', {u'name': u'captchaToken'})
    if ((not query) or (not token)):
        log.error(u'Unable    to    solve    login    captcha.')
        return output
    query_expr = query.attrs[u'value'].strip(u'=    ')
    log.debug((u'Captcha    query:    ' + query_expr))
    answer = arithmeticEval(query_expr)
    log.debug((u'Captcha    answer:    %s' % answer))
    params[u'captchaAnswer'] = answer
    params[u'captchaQuery'] = query.attrs[u'value']
    params[u'captchaToken'] = token.attrs[u'value']
    return opener.open(url_auth, urllib.parse.urlencode(params)).read()
