<div dir="ltr">You might want to take a look at HAL (hardware extraction layer) and DBUS.<br><br><a href="http://www.freedesktop.org/wiki/Software/hal">freedesktop.org - Software/hal</a>
<br><a href="http://people.freedesktop.org/%7Edavid/hal-spec/hal-spec.html">HAL 0.5.10 Specification</a>
<br><a href="http://dbus.freedesktop.org/doc/dbus-python/doc/tutorial.html#connecting-to-the-bus">Dbus Tutorial</a>
<br></div>