Python Loop For Each Element In Arraylist Length