Simple python script to check if network is active and if not after 2 checks reboot host. This is used for my Raspberry Pi.