def default_settings(params):
 def _default_settings(fn, command):
  for (k, w) in params.items():
   settings.setdefault(k, w)
  return fn(command)
 return decorator(_default_settings)

def default_settings ( params ) : def _default_settings ( fn , command ) : for ( k , w ) in params . items ( ) : settings . setdefault ( k , w ) return fn ( command ) return decorator ( _default_settings )
adds default values to settings if it not presented .