php menjalankan skrip python dengan argumen json

PHP :

base64_encode(json_encode($bodyData))
then

json_decode(shell_exec('python ' . base64_encode(json_encode($bodyData)) );
and in Python I have

import base64
and

content = json.loads(base64.b64decode(sys.argv[1]))
Jealous Jackal