boost function  delegation to python