def sendMessage(qry):
 try:
  getUserName()
 except:
  return _skypeError()
 if (qry == 'skype update'):
  _writeFriends()
  _getAvatars()
  return (len(_readFriends()).__str__() + ' friends found and cached!')
 else:
  m = qry.partition(': ')
  ret = skype(((('MESSAGE ' + m[0]) + ' ') + m[2]))
  if ('SENDING' in ret):
   return ('Message sent to ' + m[0])
  else:
   return ('ERROR sending message to: ' + m[0])

def sendMessage ( qry ) : try : getUserName ( ) except : return _skypeError ( ) if ( qry == 'skype update' ) : _writeFriends ( ) _getAvatars ( ) return ( len ( _readFriends ( ) ) . __str__ ( ) + ' friends found and cached!' ) else : m = qry . partition ( ': ' ) ret = skype ( ( ( ( 'MESSAGE ' + m [ 0 ] ) + ' ' ) + m [ 2 ] ) ) if ( 'SENDING' in ret ) : return ( 'Message sent to ' + m [ 0 ] ) else : return ( 'ERROR sending message to: ' + m [ 0 ] )
message sending handling .