Hi!
I believe I can do this.
I'm familiar with python and PHP backends interacting with each other.
If I may make a suggestion though, I would wrap the python script script inside a small API and have it called from the PHP script in order to avoid possible filesystem permissions problems, as well as wrapping the python execution inside a virtual environment which is usually a good practice.
Looking forward to hearing from you.
Regards,
Martín.