def send_message(number, message):
    client = nexmo.Client(key=os.getenv('nexmokey'), secret=os.getenv('nexmosecret'))
    response = client.send_message({'from': 'Nexmo', 'to': number, 'text': message})
    if (response['messages'][0]['status'] != '0'):
        response = sms.send(message, [('+' + number)])
    return response
def send_message(number, message):
    client = nexmo.Client(key=os.getenv('nexmokey'), secret=os.getenv('nexmosecret'))
    response = client.send_message({'from': 'Nexmo', 'to': number, 'text': message})
    if (response['messages'][0]['status'] != '0'):
        response = sms.send(message, [('+' + number)])
    return response