def rest_queue_list(user='guest', password='guest', host='localhost', port=
    15672, virtual_host=None):
    url = 'http://%s:%s/api/queues/%s' % (host, port, virtual_host or '')
response = requests.get(url, auth=(user, password))
queues = [q['name'] for q in response.json()]
return queues
How can I list or discover queues on a RabbitMQ exchange using python?