proc = subprocess.Popen('/usr/sbin/rabbitmqctl list_queues', shell=True,
    stdout=subprocess.PIPE)
stdout_value = proc.communicate()[0]
print(stdout_value)
How can I list or discover queues on a RabbitMQ exchange using python?