l = ['data', 'more data', '', 'data 2', 'more data 2', 'danger', '',
    'date3', 'lll']
from itertools import groupby
groupby(l, lambda x: x == '')
[list(group) for k, group in groupby(l, lambda x: x == '') if not k]
Разделение Python на списки