Python Array Remove Last Element From Arraylist