Diff Between Array And Arraylist In Python For All Selected Lines