human
Solve the following python programming problem given the following code:
@ auth_views.route ('/accounts/login', methods = ['GET', 'POST']) 
def login() : 
    next_url = (request.form.get ('next', None) or request.args.get ('next', None) or session.get ('next_url', None)) 
    if ((request.method == 'GET') and (not next_url) and request.referrer) : 
        urldata = urlparse.urlparse (request.referrer) 
        if (urldata.path.find ('/accounts') != 0) : 
            host = request.headers.get ('HOST', '') 
            if (kwargs and (urldata.netloc.find (host) > (- 1))) : 
                next_url = request.referrer 
if (not next_url) : 
        next_url = '/' 
session ['next_url'] = next_url 
    def do_redirect() : 
        del session ['next_url'] 
        return redirect (next_url) 
if current_user.is_authenticated () : 
        return do_redirect () 
if (request.method == 'POST') : 
        is_login = False 
        if request.form.has_key ('name') : 
            register_form = RegistrationForm (request.form) 
            login_form = LoginForm () 
            form = register_form 
else : 
            is_login = True 
            login_form = LoginForm (request.form) 
            register_form = RegistrationForm () 
            form = login_form 
if form.validate () : 
            if (not is_login) : 
                user = form.save () 
                signal_user_registered.send ('flask-satuh', user = user) 
                login_user (user) 
                return do_redirect () 
else : 
                login_user (form.user_cache) 
                return do_redirect () 
else : 
            kwargs = { 
                'login_form' : login_form, 
                'register_form' : register_form, 
                'is_login' : is_login, 
} 
            return render_template ('auth/login.html', ** kwargs) 
else : 
        if (request.args.get ('l', '') == '1') : 
            is_login = True 
login_form = LoginForm () 
        register_form = RegistrationForm () 
kwargs = locals () 
    return render_template ('auth/login.html', ** kwargs) 

    
    

    Fix the buggy line: if (kwargs and (urldata.netloc.find (host) > (- 1))) :
assistant
#Here is Python code to find ('/accounts') != 0) : 
.

if (host and (urldata.netloc.find (host) > (- 1))) :