Stack Implementation Using Dictionary In Python Definition