If Not Stack Python Problem Solve