Conditionally add items to a list when defining the list?
I'd just insert them afterwards; lists are mutable after all:
l = [
HeadObj(1),
HeadObj(2),
BodyObj(1),
BodyObj(2),
BodyObj(3),
FooterObj(1)
]
if USE_SEPARATORS:
l.insert(2, Separator())
l.insert(6, Separator())