Reverse String using Python Stack