'Sets the HTTP proxy on Linux'

def set_http_proxy(self, host, port):

    subprocess.call("sudo    gsettings    set    org.gnome.system.proxy    mode    'manual'", shell=True)
    subprocess.call("sudo    gsettings    set    org.gnome.system.proxy.http    host    '{}'".format(host), shell=True)
    subprocess.call('sudo    gsettings    set    org.gnome.system.proxy.http    port    {}'.format(port), shell=True)
