def _line_slicer(colwidth):
    """
    Makes a function to slice a line string at the column points defined
    by colwidth
    
    colwidth is list-like, defining width of columns.  The standard column
    padding is assumed
    """
    i0 = 0
    iStart = []
    iEnd = []
    for width in colwidth:
        i1 = i0 + width
        iStart.append(i0)
        iEnd.append(i1)
        i0 = i1
    slice_ind = zip(iStart, iEnd)
    def slice_line(line, strip=False):
        """
        split line into different columns
        
        if strip == True, all the columns will have .strip() applied
        """
        line = line.strip('\n')
        out = [line[i0:i1] for i0, i1 in slice_ind]
        if strip:
            out = [x.strip() for x in out]
        return out
    return slice_line