'Initialize the MPD device.'

def __init__(self, server, port, password, name):

    import mpd
    self.server = server
    self.port = port
    self._name = name
    self.password = password
    self._status = None
    self._currentsong = None
    self._playlists = []
    self._currentplaylist = None
    self._is_connected = False
    self._client = mpd.MPDClient()
    self._client.timeout = 5
    self._client.idletimeout = None
    if (password is not None):
        self._client.password(password)
