Update get_public_ip.py

Less code bb
Merge pull request #1 from Ninjex/patch-1

Pfft open sockets build character.