code: def _getphoto_information(self,pid):
          
          if not self._connectToFlickr():
              print("%s - Couldn't connect to flickr"%(directory))
              return False
  
          d={}
  
          logger.debug('%s - Getting photo information from flickr'%(pid))
  
          resp=self.flickr.photos_getInfo(photo_id=pid)
          if resp.attrib['stat']!='ok':
              logger.error("%s - flickr: photos_getInfo failed with status: %s",\
                      resp.attrib['stat']);
              return None
          
          p=resp.find('photo')
          p.attrib['title']=p.find('title').text
  
          return p.attrib
docs: Asks flickr for photo information
          returns dictionary with attributes
  
          {'dateuploaded': '1383410793',
           'farm': '3',
           'id': '10628709834',
           'isfavorite': '0',
           'license': '0',
           'media': 'photo',
           'originalformat': 'jpg',
           'originalsecret': 'b60f4f675f',
           'rotation': '0',
           'safety_level': '0',
           'secret': 'a4c96e996b',
           'server': '2823',
           'views': '1',
           'title': 'Image title'
           }