'Prepare the client and music variables'

def __init__(self, server='localhost', port=6600):

    self.server = server
    self.port = port
    self.client = mpd.MPDClient()
    self.client.timeout = None
    self.client.idletimeout = None
    self.client.connect(self.server, self.port)
    self.playlists = [x['playlist'] for x in self.client.listplaylists()]
    self.client.clear()
    for playlist in self.playlists:
        self.client.load(playlist)
    self.songs = []
    self.song_titles = []
    self.song_artists = []
    soup = self.client.playlist()
    for i in range(0, (len(soup) / 10)):
        index = (i * 10)
        id = soup[index].strip()
        title = soup[(index + 3)].strip().upper()
        artist = soup[(index + 2)].strip().upper()
        album = soup[(index + 4)].strip().upper()
        self.songs.append(Song(id, title, artist, album))
        self.song_titles.append(title)
        self.song_artists.append(artist)
