Php Callback Function In Python Example