Yep i would agree the staying alligned with the pope if your catholic is the best bet in the game, this means having common enemies and friends that way the pope is less likely to threaten you with excommunication.

Having said that most of my games normally en up with roughly 2 sides of factions and the popes side is not always the strongest especially in early when the byzantines tend to rule and nearly alwasys overun italy.