Fix server for Python >2