class SplitableList:

    def __init__(self, ar):
        self.ary = ar

def split(self, sep):
    return separate(self.ary, sep)

def __len__(self):
    return len(self.ary)
a = SplitableList([1, 3, 4, 6, 8, 5, 3, 4, 5, 8, 4, 3])
b = a.split([3, 4])
Python use split with arrays