linked list in pure python