def __getattr__(self, name):
        """ For attributes not found in self, redirect
        to the properties dictionary """

        try:
            return self.__dict__[name]
        except KeyError:
            if hasattr(self._props,name):
                return getattr(self._props, name)
 For attributes not found in self, redirect
        to the properties dictionary 
recipes/Python/496795_pythreplacement/recipe-496795.py