Get the Python interpreter we need to use to run our Notebook daemon.

def discover_python(self):
        """Get the Python interpreter we need to use to run our Notebook daemon."""
        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