You can replace this loop with this simpler line:

    sms_msg = "Test numbers {}".format(", ".join(nums))