def set_defaults(self, **defaults):
        """
        Add all keyword arguments to self.args

        args:
            **defaults:
                key and value represents dictionary key and value
        """
        try:
            defaults_items = defaults.iteritems()
        except AttributeError:
            defaults_items = defaults.items()
        for key, val in defaults_items:
            if key not in self.args.keys():
                self.args[key] = val
def set_defaults ( self , ** defaults ) : try : defaults_items = defaults . iteritems ( ) except AttributeError : defaults_items = defaults . items ( ) for key , val in defaults_items : if key not in self . args . keys ( ) : self . args [ key ] = val
Add all keyword arguments to self.args

        args:
            **defaults:
                key and value represents dictionary key and value