Change the way we access the queue depending on if python 2 or python 3