You can simply iterate through the list (X) and with fixed probability (p) put element in the "last" sublist and with 1-p to the new one
import random
sublists = []
current = []
for x in X:
if len(current)>0 and random.random() >= p:
sublists.append(current)
current = []
current.append(x)
sublists.append(current)