Create a separate file name it as sms_worker.py or any. Add this code to your file. Send the message by just calling the function and providing params..
import requests
base_url ="http://url/api/v4/?api_key=API_KEY&sender=SENDER&method=sms&"
def otp_reg_cmd(mobile):
sms = "Message" # Sample-Message
url = base_url+"message="+sms+"&to="+mobile
req = requests.get(url)