import itertools


def SplitNone(l):
  """Split a list using None elements as separator.

  Args:
    l: a list which may contain some None elements.

  Returns:
    A list of non-empty lists, each of which contains a maximal
    sequence of non-None elements from the argument list.
  """

  groups = itertools.groupby(l, lambda x: x is not None)
  return [list(g) for k, g in groups if k]