import xmlrpclib, urllib camera = xmlrpclib.ServerProxy("http://192.168.2.5/cgi-bin/rpc").le print camera.get("luminance") camera.set('gain', 1) jpeg=urllib.urlopen("http://192.168.2.5/cgi-bin/nph-image").read()