code: def discover_python(self):
          
          python = sys.executable
  
          #: XXX fix this hack, uwsgi sets itself as Python
          #: Make better used Python interpreter autodiscovery
          if python.endswith("/uwsgi"):
              python = python.replace("/uwsgi", "/python")
          return python
docs: Get the Python interpreter we need to use to run our Notebook daemon.