Python for sending messages