Simple server watchdog in Python (2.7)