1#!/usr/bin/python 2 3import dbus, flimflam 4 5flim = flimflam.FlimFlam(dbus.SystemBus()) 6 7print "System is %s" % flim.GetSystemState() 8