def auto_mounter(original):
    """Decorator for automatically mounting, if needed."""
    def mounter(*args):
        """If not mounted, mount."""
        self = args[0]
        if not self.is_mounted():
            self.mount()
        return original(*args)
    return mounter
Decorator for automatically mounting, if needed.