Add python->c callback functions