Couldn't find sample clients in PHP or python, so I wrote them.

Thanks!
(Replaces PR 632)