<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _getphoto_information(self,pid):
 """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' } """

        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