#!/usr/bin/python3

import dbus
import os

priv = "com.ubuntu.systemservice.setnoproxy"

session_bus = dbus.SessionBus()
system_bus = dbus.SystemBus()

ser = dbus.Interface(system_bus.get_object("com.ubuntu.SystemService","/"),
                     "com.ubuntu.SystemService")

print("setting no_proxy")
res=ser.set_no_proxy("host1,host2")
print(res)
