Another possible solution is copying the code from
/usr/lib/python2.7/dist-packages/ubuntu-sso-client/ubuntu_sso/utils/webclient/gsettings.py
The python code in that module uses the command 'gsettings' to read the 'org.gnome.system.proxy' settings and then extracts the proxy definitions from it.
Another possible solution is copying the code from python2. 7/dist- packages/ ubuntu- sso-client/ ubuntu_ sso/utils/ webclient/ gsettings. py system. proxy' settings and then extracts the proxy definitions from it.
/usr/lib/
The python code in that module uses the command 'gsettings' to read the 'org.gnome.