I have a webapp, created using CakePhp. I need to interface with a Python script.
What is the best way to go about doing that? 
(I could use pipe etc., but I want to check what the best practices are)
Thanks.
First of all, check what kinds of syndication CakePHP offers. It may expose part of its API through xmlrpc, json, RSS, and so on.
If that's not an option, connect directly to the same database the CakePHP application uses. Or alternatively, implement some php code within your CakePHP framework that expors relevant data as JSON and interface with it.
Php/Cakephp interface with Python script