Updated python script to work with V3 and created PHP equivalent...