Default [Q] I need help with this python script

I read about how using a simple script you can get the phone number of your friends on Snapchat because of some exploit.
Here's the page explaining how it's done:
Here's the script, more specifically:
I thought it would be simple to get it to work but with me having 0 experience in programming I turned to some guides for beginners on python in an attempt to teach myself. After going at it for about 10 hours total now I still cannot get it to work and I'm assuming the exploit will be patched up pretty soon. If anyone can spell it out for me or at least put me on the right track I'd love to see it work. Thanks