def _listFriends(fs, sep=': ', lock=True, getLastMessage=False):
 p = PyFred('ch.xtin.skypingalfred.find', False)
 for f in fs:
  (img, imgtype) = _getAvatar(f[0])
  p.addItem(('skypename_' + f[0]), (f[0] + sep), (f[0] + (((' (' + f[1]) + ')') if f[1] else (((' (' + f[2]) + ')') if f[2] else ''))), (_getLastMessageFormated(f[0]) if getLastMessage else ''), (not lock), (f[0] + sep), img, imgtype)
 if (len(p._items) == 0):
  p.addItem('skypename_notfound', 'skype update', ('No Skype friend found: ' + tg), 'Maybe try updating your friends? Hit enter to do so!', True)
 return p.toXML()

def _listFriends ( fs , sep = ': ' , lock = True , getLastMessage = False ) : p = PyFred ( 'ch.xtin.skypingalfred.find' , False ) for f in fs : ( img , imgtype ) = _getAvatar ( f [ 0 ] ) p . addItem ( ( 'skypename_' + f [ 0 ] ) , ( f [ 0 ] + sep ) , ( f [ 0 ] + ( ( ( ' (' + f [ 1 ] ) + ')' ) if f [ 1 ] else ( ( ( ' (' + f [ 2 ] ) + ')' ) if f [ 2 ] else '' ) ) ) , ( _getLastMessageFormated ( f [ 0 ] ) if getLastMessage else '' ) , ( not lock ) , ( f [ 0 ] + sep ) , img , imgtype ) if ( len ( p . _items ) == 0 ) : p . addItem ( 'skypename_notfound' , 'skype update' , ( 'No Skype friend found: ' + tg ) , 'Maybe try updating your friends? Hit enter to do so!' , True ) return p . toXML ( )
uses a list of friends and creates the output for alfred .