Python Array Remove Last Element