Though the Tour is not over yet, unless Contador has mechanical problems during the time trial, the Tour is over - in terms of the yellow jersey winner.
Andy Schleck absolutely laid it down on his ride up the Col de Tourmalet. He attacked and Contador merely hung on Schleck's wheel. When Contador tried to attack, Schleck was able to respond.
I think it was Phil Ligget that commented at the end of the stage that Contador "gave" the stage win to Schleck.
I'd say Schleck fully earned the win and he can walk away from the Tour with his head held high.