When I'm trying to get the idle time of the gnome screensaver in seconds, through dbus, python throws an TypeError.
In the documentation I found for the screensaver sessionIdleTime, it returns a unsigned integer. http://www.gnome.org/~mccann/gnome-screensaver/docs/gnome-screensaver.html#gs-method-GetSessionIdle
However, when I'm in the python shell, the output is converterted to a string, while I can't seen to be able to cast it as a string in the program.
gs = gs = bus.get_object('org.gnome.ScreenSaver','/org/gnome/ScreenSaver')
message = str(gs.GetSessionIdleTime())