<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def looking_for_friends(self):
        '''Look for friends to drink with'''
        self.info('I am looking for friends')
        available_friends = list(self.get_agents(drunk=False,
                                                 pub=None,
                                                 state_id=self.looking_for_friends.id))
        if not available_friends:
            self.info('Life sucks and I\'m alone!')
            return self.at_home
        befriended = self.try_friends(available_friends)
        if befriended:
            return self.looking_for_pub