#!/usr/bin/env python

import dbus
bus = dbus.SystemBus()
shut = bus.get_object('org.freedesktop.ConsoleKit','/org/freedesktop/ConsoleKit/Manager')
shutr = dbus.Interface(shut, 'org.freedesktop.ConsoleKit.Manager')
shutr.Stop()