Extension to execute python function

This example may help: