fixed bugs in sonos.py