Stack Implementation Using Dictionary In Python Code