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