Python script for monitoring the health of a web server