Python Loop For Each Element In Arraylist C