Data Structure In Python Stack Operations Program