Added ability to send messages from python