Level 67
I don't know a lot about the subject, but it seems you'd have totally separate python code and php code. The php code would call the python code, kind of like you would when querying a 3rd party api (make a call to the script, get the response, display it/manipulate it in php.)
https://stackoverflow.com/questions/166944/calling-python-in-php