Update httphandler.py

Backwardscompatibility to Python 2.6