'Convert a list of items to the desired output format'

def convert_items(self, items):

    if self.prewrap_fn:
        items = [self.prewrap_fn(i) for i in items]
    if self.wrap:
        items = self.wrap_items(items)
    else:
        items = items[:]
    return items
