code: def _connectToWP(self):
          
  
          if self.connected_to_wp:
              logger.debug("Already connected to wp")
              return True
  
          # Load config from file
          info=json.load(open(WP_LOGIN_FILE,'r'))
          self.wp = Client(info['url'],\
                  info['username'],\
                  info['password'])
  
          logger.debug("Connecting to wp")
  
          self.connected_to_wp=True
  
          return True
docs: Establish the actual TCP connection to Flickr