Brazil's president made a timely, though probably innocent, intervention during Britain's party political conference season when she hailed the importance of stimulating economic growth.
President Dilma Rousseff, a former Marxist, said it was important to stimulate the economy during a downturn.
Standing next to David Cameron, who is pushing an austerity programme in the UK, she delivered a speech at the presidential palace in Brasilia that could gave been written by the Labour party.
She said: "I stressed the importance of expanding efforts with a view to improving the conditions that will prove conducive to a recovery of the international economy, not only as regards developed countries but also as regards emerging countries," said the socialist president.
The president lavished praise on Cameron for his successful visit to Brazil, saying she was impressed that he visited all three main cities – São Paulo, Rio de Janeiro and Brasilia.
Cameron responded by supporting Brazil's campaign to have a permanent seat on the UN security council. He said: "As Brazil takes its place on the global stage, so it's case for permanent membership of the UN security council becomes ever stronger. We support Brazilian membership.
Cameron ended his trip to Brazil by launching a treaty to encourage the production of more Anglo-Brazilian blockbuster films.
Speaking at his press conference with Rousseff, Cameron said he wanted to see more productions of films such as the James Bond adventure Moonraker that was shot in Rio.
Cameron, who claims to be a big Bond fan, said: "In film [we have agreed] a new film co-production treaty which will offer incentives for our budding film makers to work together and make a new generation of blockbusters with those unforgettable moments like Bond hanging over Sugar Loaf Mountain."
The treaty, signed by the trade minister Lord Green and the Brazilian culture minister Antonio Patriota, was one of 10 treaties signed during his visit to Brasilia.