For all users which use not a english version of Windows OS (german, french, ...)
If you want to use the python script above, you must change code in follow line, otherwise you get always a True result for the ip adresses.
first check your OS language: Click on the Windows "Start button", type
cmd and then press return. As next type in the cmd window
ping 192.168.0.2 (change 192.168.0.2 with a available IP) and press return.
You can see a result for this IP - take a look on the word that I have marked red -> If you can see here the word
loss - you need not to modify the ping.py and everything is fine. If there a other word as
loss, you must replace the word
loss in the ping.py with exact the word that is is displayed. In my case (german)
Verlust.
example:
[attachment=1]
How can you change code in a python code: open the ping.py in a txt-editor

After you have open the ping.py search for the word
loss, replace it and save the file.
[attachment=2]
That is all - I hope this will help some users
Merry Christmas

Kalle