<prompt> Translate the following text to SwahiliIn Rome, the dissolute popes repeatedly switched factions for temporary advantage and lost all political and moral authority in the process.  <response>: Katika Roma, mapapa waliochanganyikiwa walibadilisha vikundi mara kwa mara kwa faida ya muda na kupoteza mamlaka yote ya kisiasa na ya kiadili katika mchakato huo. 