Python application that monitors the network connection