If I have a construct like this:
def foo(): a=None b=None c=None #...loop over a config file or command line options... if a is not None an
There's nothing wrong with the way you're doing it.
If you have a lot of variables, you could put them in a list and use all:
all
if all(v is not None for v in [A, B, C, D, E]):