Using local scope to find jmespath functions