Add a python lamda function.