PHP exec python script

<?php

error_reporting(E_ALL);

$command = 'python3 /home/uploads/testing.py';

$command = escapeshellcmd($command);

$shelloutput = exec($command,$output, $ret_code);

echo "<h1>";

echo $shelloutput;

echo $output;

echo $ret_code;

echo "</h1>";

?>