Fix use of lambda where a regular function is better
Fix use of lambda where a regular function is better

Flake8 E731

xesscorp/KiCost,hildogjr/KiCost,hildogjr/KiCost,hildogjr/KiCost,xesscorp/KiCost,xesscorp/KiCost