Scotland coach Gregor Townsend said his team played better when France had 15 men on the field than they did after Mohamed Haouas was sent off.