Hi All,
I finally packaged up some code I've had lying around for a while and added it to PdParser to make PyPd - classes for interfacing with Pd from inside Python.
You can use Pd.py to launch Pd as a subprocess and communicate with it via sockets. You can use PdParser.py to parse .pd files.
http://mccormick.cx/projects/PyPd/
I started these classes quite a while ago, but their ongoing development is being driven primarily by RjDj projects.
Chris.