changing the send_msg function to adhere to the salt coding style.

changing the send_msg function to adhere to the salt coding style.