$import dbus bus = dbus.SystemBus() accel = bus.get_object('com.nokia.mce', '/com/nokia/mce/request', 'com.nokia.mce.request') orientation , stand , face , x , y , z = accel.get_device_orientation()