adjusted API (headphones.py) & code cleanup