Как отправить данные из PHP на Python

$response = shell_exec("python3 script.py" . escapeshellarg(json_encode($data)));
Fahim Foysal