'type' instead of 'exchange_type' in recent pika vers