Creates a photo set on Flickr

def _createphotoset(self,myset,primary_photoid):
        """Creates a photo set on Flickr"""
        if not self._connectToFlickr():
            print("%s - Couldn't connect to flickr"%(directory))
            return False
        
        logger.debug('Creating photo set %s with prim photo %s'\
                %(myset,primary_photoid))
        resp=self.flickr.photosets_create(title=myset,\
                primary_photo_id=primary_photoid)
        if resp.attrib['stat']!='ok':
            logger.error("%s - flickr: photos_setTags failed with status: %s",\
                    resp.attrib['stat']);
            return False
        else:
            return True