def _GetDefaultParams(template_params):
 if (not template_params):
  template_params = {}
 template_params.update({'base_path': config.BASE_PATH, 'mapreduce_path': config.MAPREDUCE_PATH})
 return template_params

def _GetDefaultParams ( template_params ) : if ( not template_params ) : template_params = { } template_params . update ( { 'base_path' : config . BASE_PATH , 'mapreduce_path' : config . MAPREDUCE_PATH } ) return template_params
update template_params to always contain necessary paths and never none .