def __method(self, path, *args, **keywords):
        "Extract a method and run it with the provided arguments."
        method = self.__obj
        for name in path:
            method = getattr(method, name)
        return method(*args, **keywords)
Extract a method and run it with the provided arguments.
recipes/Python/577635_Directory_Pruner_3/recipe-577635.py