Wrong. And you don't get to say when the story ends.The Pope IS a communist raised in the tradition of South American Maryknoll missionaries in the 50's. End of story.
-------
Nonetheless, the economic writings of both John Paul and Francis also reflect the same intellectual tradition - one known as Catholic Social Teaching. It was originally articulated in an 1891 papal document called Rerum Novarum, in which Pope Leo XIII addressed what he called the "spirit of revolutionary change" then sweeping Europe.
Some of it is very clearly designed to be a rebuttal of the communist ideas that were part of that change, but it is also a critique of aspects of capitalism. So it is an unfamiliar mix that does not fit neatly into the left-right divide that dominated the politics of the following century.