def add_defaults(variables, functions, case_sensitive):
 all_variables = dict(DEFAULT_VARIABLES)
 all_functions = dict(DEFAULT_FUNCTIONS)
 all_variables.update(variables)
 all_functions.update(functions)
 if (not case_sensitive):
  all_variables = lower_dict(all_variables)
  all_functions = lower_dict(all_functions)
 return (all_variables, all_functions)

def add_defaults ( variables , functions , case_sensitive ) : all_variables = dict ( DEFAULT_VARIABLES ) all_functions = dict ( DEFAULT_FUNCTIONS ) all_variables . update ( variables ) all_functions . update ( functions ) if ( not case_sensitive ) : all_variables = lower_dict ( all_variables ) all_functions = lower_dict ( all_functions ) return ( all_variables , all_functions )
create sets with both the default and user-defined variables .