PHP transcription of SkypeFreak Python script