def __getattr__(self, attr):
     if attr.startswith("__"):
        raise AttributeError, attr
     try:
         return CommandContainer.__getattr__(self, attr)
     except AttributeError:
         try:
             return HardwareObjectNode.__getattr__(self, attr)
         except AttributeError:
             raise AttributeError, attr
    def __getattr__(self, attr):
        if attr.startswith("__"):
            raise AttributeError(attr)

        try:
            return CommandContainer.__getattr__(self, attr)
        except AttributeError:
            try:
                return HardwareObjectNode.__getattr__(self, attr)
            except AttributeError:
                raise AttributeError(attr)