Stack Implementation Using Dictionary In Python