If Not Stack Python Problem