Implemented Doubly-Linkedlist in python