code: def getPhotosets(self):
          
          method = 'flickr.photosets.getList'
          data = _doget(method, user_id=self.id)
          sets = []
          if isinstance(data.rsp.photosets.photoset, list):
              for photoset in data.rsp.photosets.photoset:
                  sets.append(Photoset(photoset.id, photoset.title.text,\
                                       Photo(photoset.primary),\
                                       secret=photoset.secret, \
                                       server=photoset.server, \
                                       description=photoset.description.text,
                                       photos=photoset.photos))
          else:
              photoset = data.rsp.photosets.photoset
              sets.append(Photoset(photoset.id, photoset.title.text,\
                                       Photo(photoset.primary),\
                                       secret=photoset.secret, \
                                       server=photoset.server, \
                                       description=photoset.description.text,
                                       photos=photoset.photos))
          return sets
docs: Returns a list of Photosets.