Linked list implemented in Python