a = b = c = d = 3
lol = [[a], [b], [], [c], [], [], [d]]
from itertools import chain
print(list(chain.from_iterable(el or [[]] for el in lol)))
'List of lists' to 'list' without losing empty lists from the original list of lists