httpserver: Add support for python2