Making salt/netapi/rest_cherrypy/wsgi python3 compatible