Fixes error for amqp where r is a list
Merge pull request #190 from chas11man/master

RabbitMQ API requests giving TypeError for type list