Added support to httpd.py for python3.