if len(sys.argv) != 2:
    print('Usage: sendsms.py [configfile] RECIPIENT_NUMBER')
sys.exit(1)
sm.Init()
message = {'Text': 'python-gammu testing message', 'SMSC': {'Location': 1},
    'Number': sys.argv[1]}
sm.SendSMS(message)
How to use setup.py in Python gammu