php에서 py를 실행하기

http://stackoverflow.com/questions/19735250/running-a-python-script-from-php
<?php 

$command = escapeshellcmd('/usr/custom/test.py');
$output = shell_exec($command);
echo $output;

?>