Tabii bir dosya çalıştırmak isterseniz.
<?php
$pythonPath = escapeshellcmd('././file.py');
$cikti = shell_exec($pythonPath);
echo $cikti;
?>