Small Python script to repeatedly check for a valid internet connection.