Update Linked List implementation in Python