Updated python client to handle playback toggling.