Hi. First of all, great job with the Python API! I have struck upon the same problem on both macOS Sierra and Raspian (Linux). The problem is in line 47 is fixed by replacing "socket.gethostbyname()" with just "''" (an empty string). I am quite new to networking so I am not sure what is the reason for the issue.