added send_messages method to KeyedProducer to support sending multiple messages at once