def __init__(self, top=None):
     if top:
         obj = LL.Element(top)
         self.ll = LL.LinkedList(obj)
     else:
         self.ll = LL.LinkedList()
 def push(self, new_element):
     obj = LL.Element(new_element)
     obj.next = self.ll.head
     self.ll.head = obj