Llame a Python desde PHP y obtenga el código de retorno

exec('python blibble.py', $output, $ret_code);
Tired Tiger