def send(self, n, routing):
self.channel.basic_publish(exchange='',
routing_key=routing,
properties=pika.BasicProperties(
delivery_mode=2,),
body=json.dumps(n))