I guess (interactive "P") should be (interactive) only, and (org-todo-list 0) should be replaced by something like (org-todo-list "TODO") since 4.70.