Implement a singly linked list in Python