answered 13 years ago
This might help:
http://stackoverflow.com/questions/89228/how-to-call-external-command-in-python
For getting and altering the path, the python os module is useful:
os
http://docs.python.org/library/os.html#module-os