def bulk_update_locations(self, types, locations): importer = NewLocationImporter( self.domain.name, [LocationTypeStub(*loc_type) for loc_type in types], [LocationStub(*loc) for loc in locations], ) result = importer.run() return result