PHP only update - Moved RPC stuff from python to PHP