Php Callback Function With Parameters Python