When President Barack Obama meets this week with President Enrique Peña Nieto in Mexico, he will be visiting a country that was much maligned throughout his first term.