add two numbers represented by linked lists in python