Binary package “python-mmkeys” in ubuntu precise

Multimedia key support as a PyGTK object

 This module lets you access multimedia keys found on most new keyboards
 from Python; most important it grabs all input events so your program
 doesn't need to be in focus when the key is pressed (which is the
 usual behavior of the keys). You still need something like Acme or
 xmodmap to map the keys before using them.