filename1 = sys.argv[1]
filename2 = sys.argv[2]
with open(filename1) as file1:
    for x in file1:
        with open(filename2) as file2:
            col = x.strip().split()
for y in file2:
    col2 = y.strip().split()
if col[1] == col2[1] and int(col[3]) < int(col2[2]):
    pass
how to break out of only one nested loop