Stack Operation Using List In Python