This is a trivial script to setup in order to monitor the availability of websites and send email when a site is down.
Now for Python 3.x
% python3 httpmon.py http://yoursite.com % python3 httpmon.py -e "you@gmail.com" http://site1.com http://site2.com % python3 httpmon.py --help