def __getattr__(self, attr):
        """
        Redirect member requests except seek() to original object
        """
        if attr in self.__dict__:
            return self.__dict__[attr]

        if attr == 'seek':
            raise AttributeError

        return getattr(self.obj, attr)
def __getattr__ ( self , attr ) : if attr in self . __dict__ : return self . __dict__ [ attr ] if attr == 'seek' : raise AttributeError return getattr ( self . obj , attr )
Redirect member requests except seek() to original object