Making salt/netapi/rest_cherrypy/app python3 compatible