I have C code which detects wired headset button presses. I need to: 1. Clean it up a bit (it's modified headset-control source) 2. Translate it to Python 3. Find someone to test it with bluetooth headsets. Do you have bluetooth headset? If you do, you may try to install headset-button-enabler and headset-control from extras-devel and chceck if it works (it should start/stop music in stock media player when button is pressed - try long press, with my cheap wired headset I need to hold the button for 1-2 seconds before it's noticed by the phone)