That's was a McCartney Song.
Of course, "Revolution" and "Dear Prudence" from the same album are timeless classics and they were Lennon songs.
He was an enormously talented song writer by universal acclaim.
And, yes, also a Godless Commie.
But to deny his talent is to deny reality...as he himself often did.
Revolution was critical of the concept of revolution.