Python Find Last Index Of Array In C