'Takes an array of data bytes, and slices into elements of
PIPE_BUF bytes each'

def _sliceup(self, data):

    out = []
    while (len(data) > PIPE_BUF):
        out.append(data[0:PIPE_BUF])
        data = data[PIPE_BUF:]
    if (len(data) > 0):
        out.append(data)
    return out
