fix http doctest for python3