def skype(msg):
 cmd = (('tell app "Skype" to send command "' + msg) + '" script name "Alfred"')
 p = Popen(['osascript', '-'], stdin=PIPE, stdout=PIPE, stderr=PIPE)
 (stdout, stderr) = p.communicate(cmd)
 return stdout

def skype ( msg ) : cmd = ( ( 'tell app "Skype" to send command "' + msg ) + '" script name "Alfred"' ) p = Popen ( [ 'osascript' , '-' ] , stdin = PIPE , stdout = PIPE , stderr = PIPE ) ( stdout , stderr ) = p . communicate ( cmd ) return stdout
sends message to skype .