bug fix in python http parser