code: def getDBusEnvEndpoints(reactor, client=True):
      
      env = os.environ.get('DBUS_SESSION_BUS_ADDRESS', None)
      if env is None:
          raise Exception('DBus Session environment variable not set')
  
      return getDBusEndpoints(reactor, env, client)
docs: Creates endpoints from the DBUS_SESSION_BUS_ADDRESS environment variable
  
      @rtype: C{list} of L{twisted.internet.interfaces.IStreamServerEndpoint}
      @returns: A list of endpoint instances