Python implementation of a basic LinkedList