def restore_redis():
    """Restores the redis client"""
    try:
        from redis.client import Pipeline, Redis
    except ImportError:
        pass
    else:
        if hasattr(Redis.execute_command, '__wrapped__'):
            setattr(Redis, 'execute_command', Redis.execute_command.__wrapped__
                )
        for class_method in ['execute', 'immediate_execute_command']:
            if hasattr(getattr(Pipeline, class_method), '__wrapped__'):
                setattr(Pipeline, class_method, getattr(Pipeline,
                    class_method).__wrapped__)
