PYP is a project mainly written in Python, it's free.
compiles Python code into PHP
cd into the directory that contains this script (py2php.py, watch.py, etc)
example : cd ~/myscripts/PYP/
python watch.py <pyp sources directory> <php destination directory>
example : python watch.py ./ /var/www/projectname/