Switched to telnetlib for communicating with mpd