Pytorch Chatbot Tutorial problem: How can I solve List Index