def __init__(self, **kargs):
        """Subclasses should call this after initializing any defaults.

        **kargs - Set each attribute with the given value.  Keys in kargs that
        aren't in self.__attributes__ will be ignored.  

        """
        for i in self.__attributes__:
            if kargs.has_key(i):
                setattr(self, i, kargs[i])
Subclasses should call this after initializing any defaults.

        **kargs - Set each attribute with the given value.  Keys in kargs that
        aren't in self.__attributes__ will be ignored.  

        
recipes/Python/363773_AutomaticClass/recipe-363773.py