from datetime import datetime
import spotipy


class SpotifyItem(object):

    def __init__(self, **entries):
        self.__dict__.update(entries)
        self._client = spotipy.Spotify()


class Artist(SpotifyItem):

    def __init__(self, **entries):
        super(Artist, self).__init__(**entries)


class Album(SpotifyItem):

    def __init__(self, **entries):
        super(Album, self).__init__(**entries)


class Track(SpotifyItem):

    def __init__(self, **entries):
        super(Track, self).__init__(**entries)
        self.album = Album(**self.album)
        self.artists = [Artist(**a) for a in self.artists]


class PlaylistEntry(SpotifyItem):

    def __init__(self, **entries):
        super(PlaylistEntry, self).__init__(**entries)
        self.track = Track(**self.track)
        self.added_at = datetime.strptime(self.added_at, '%Y-%m-%dT%H:%M:%SZ')
        self.added_date = self.added_at.date()

@@ -292,24 +292,96 @@
 **entries)%0A%0A
+    def __repr__(self):%0A        return 'Artist: %7B0%7D'.format(self.name)%0A%0A
 %0Aclass Album
@@ -479,16 +479,87 @@
 tries)%0A%0A
+    def __repr__(self):%0A        return 'Album: %7B0%7D'.format(self.name)%0A%0A
 %0Aclass T
@@ -761,16 +761,358 @@
 tists%5D%0A%0A
+    def __repr__(self):%0A        return 'Track: %7B0%7D'.format(self.name)%0A%0A%0Aclass Playlist(SpotifyItem):%0A%0A    def __init__(self, **entries):%0A        super(Playlist, self).__init__(**entries)%0A        self.url = self.external_urls%5B'spotify'%5D%0A        del self.external_urls%0A%0A    def __repr__(self):%0A        return 'Playlist: %7B0%7D'.format(self.name)%0A%0A
 %0Aclass P
@@ -1349,16 +1349,16 @@
 M:%25SZ')%0A
-
         
@@ -1396,8 +1396,93 @@
 .date()%0A
+%0A    def __repr__(self):%0A        return 'PlaylistEntry: %7B0%7D'.format(self.track.name)%0A

Add playlist class