emulating rabbitmqctl from python