Returns dictionary of photosets retrieved from flickr
        d['title']['number_photos'] : Number of photos
        d['title']['id']            : ID of photoset
        d['title']['photo_id']      : ID of primary photo
        d['title']['url']           : URL to photoset

def _getphotosets(self):
        """Returns dictionary of photosets retrieved from flickr
        d['title']['number_photos'] : Number of photos
        d['title']['id']            : ID of photoset
        d['title']['photo_id']      : ID of primary photo
        d['title']['url']           : URL to photoset
        """
        sets={}
        if not self._connectToFlickr():
            print("Couldn't connect to flickr")
            return sets

        psets = self.flickr.photosets_getList(user_id=myid)
        for myset in psets.find('photosets').findall('photoset'):
            key=myset.find('title').text
            sets[key]={}
            sets[key]['number_photos']=int(myset.attrib['photos'])
            sets[key]['photo_id']=(myset.attrib['primary'])
            sets[key]['id']=int(myset.attrib['id'])
            sets[key]['url']='http://www.flickr.com/photos/%s/sets/%d/'\
                    %(myid,sets[key]['id'])

        return sets