<s> import Skype4Py <EOL> import time <EOL> class SkypeEvents : <EOL> def SmsMessageStatusChanged ( self , sms , status ) : <EOL> print '<STR_LIT>' , sms . Id , '<STR_LIT:status>' , status , skype . Convert . SmsMessageStatusToText ( status ) <EOL> if status == Skype4Py . smsMessageStatusFailed : <EOL> print sms . FailureReason <EOL> def SmsTargetStatusChanged ( self , target , status ) : <EOL> print '<STR_LIT>' , target . Message . Id , '<STR_LIT:target>' , target . Number , '<STR_LIT:status>' , status , skype . Convert . SmsTargetStatusToText ( status ) <EOL> skype = Skype4Py . Skype ( Events = SkypeEvents ( ) ) <EOL> if not skype . Client . IsRunning : <EOL> skype . Client . Start ( ) <EOL> sms = skype . SendSms ( '<STR_LIT>' , Body = '<STR_LIT>' ) <EOL> time . sleep ( <NUM_LIT> ) </s>
