Fix PyQgsAtlasComposition by reordering some calls