Added python equivalent (hopefully)

I dun like da PHP