import urllib2
    def Aviable(requrl)
        testdata='***'
        testreq=urllib2.Request(requrl, testdata) 
        testresponse = urllib2.urlopen(testreq)
        test=testresponse.read()
        if "methodResponse" in test:
            print "dddd"
            return True
        else:
            print "ssss"
            return False
    def Exploit():
        url=open('url.txt','r')
        for requrl in url:   #the aaa loop
            if Aviable(requrl):
                fuser=open('username.txt','r')
                fpass=open('password.txt','r')
                for username in fuser:   #the bbb loop
                    if Flag==1:
                        break
                    for password in fpass:  #the ccc loop
                        if Flag==2:
                            break
                        reqdata='********'
                        req=urllib2.Request(requrl,reqdata)
                        result=urllib2.urlopen(req).read()
                        num=num+1
                        if "aaa" in result :
                            print "Got it !"
                            print "username :"+username+"password :"+password
                            Flag=1
                            break
                        elif num==11:
                            Flag==2
                        elif "aaa" and "405" in result:
                            continue
    if __name__=='__main__':
        Exploit()
Is there a way to make when Flag==2 break the ccc loop and goto the bbb loop? It always goes to the aaa loop.
I want to change url after traversal the username.txt and password.txt
 
     
    