List Object Cannot Be Interpreted As An Integer Python