update the php and python template definitions