Make Context.queues API more Pythonic