compare two lists in python using for loop