make AsyncHTTPServer compatible with python 3.4+