If you are thinking of Brazil, the northeast is an excellent place to get some beach weather in July, in Pernambuco, Ceara or further north. (The south will be chilly.) There are lots of gorgeous beaches along that coast.
You might also get some clear sightseeing weather in Rio to visit the viewpoints. (See www.ipanema.com for an overview of the city.)
July is an excellent time to explore, and swim in, the lakes formed by rain in the spectacular white dunes of the Parque Lencois in Maranhao state, and to explore the historic Reviver city center of the capital Sao Luis (a U.N. World Heritage cultural patrimony site), visit the lace-making demonstarations in the fishing community of Raposa (great high-quality artisanal souvenirs !), and take a boat ride to the picturesque village of Alcantara.
Enjoy.