Python Code For Linked List