def add_checks(actions):
 if (FETCH in actions):
  actions.setdefault(CHECK_FETCH, [True])
 if (EXTRACT in actions):
  actions.setdefault(CHECK_EXTRACT, [True])

def add_checks ( actions ) : if ( FETCH in actions ) : actions . setdefault ( CHECK_FETCH , [ True ] ) if ( EXTRACT in actions ) : actions . setdefault ( CHECK_EXTRACT , [ True ] )
adds appropriate checks to a given dict of actions .